Skip to content

Commit

Permalink
update GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita authored and Nikita committed Nov 21, 2023
1 parent caaf7b3 commit eb4a8b2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/docker-multi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -24,9 +24,9 @@ jobs:
- '8.3-debug'
- '8.3-full-nginx'
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3

- name: Test Ruby Version
run: ruby -v
Expand All @@ -35,15 +35,15 @@ jobs:
continue-on-error: true
run: |
sudo apt-get -qqy install git sudo ruby
sudo gem install puppet -v 7.24.0 --no-document
sudo gem install puppet -v 7.27.0 --no-document
sudo rm -fR /etc/puppetlabs/code/modules/image_build
sudo git clone --single-branch --branch v2 https://github.com/luckyraul/puppetlabs-image_build.git /etc/puppetlabs/code/modules/image_build
- name: Test Puppet Version
run: puppet -V
- name: Build Image
run: |
for arch in amd64 arm64 ; do
sudo puppet docker build --image-name mygento/php:${{ matrix.version }}-$arch --no-show-diff --native --buildkit --platform linux/$arch --load --debug
sudo puppet docker build --image-name mygento/php:${{ matrix.version }}-$arch --no-show-diff --native --buildkit --platform linux/$arch --load --debug --no-slim
done
- name: Test Image Version Amd64
run: docker run --rm mygento/php:${{ matrix.version }}-amd64 php -v
Expand All @@ -54,7 +54,7 @@ jobs:
- name: Test Image Config
run: docker run --rm mygento/php:${{ matrix.version }}-amd64 php -i
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -24,7 +24,7 @@ jobs:
- '7.4-debug'
- '7.4-full-nginx'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Test Ruby Version
run: ruby -v
Expand All @@ -33,7 +33,7 @@ jobs:
continue-on-error: true
run: |
sudo apt-get -qqy install git sudo ruby
sudo gem install puppet -v 7.24.0 --no-document
sudo gem install puppet -v 7.27.0 --no-document
sudo rm -fR /etc/puppetlabs/code/modules/image_build
sudo git clone --single-branch --branch v2 https://github.com/luckyraul/puppetlabs-image_build.git /etc/puppetlabs/code/modules/image_build
- name: Test Puppet Version
Expand All @@ -48,7 +48,7 @@ jobs:
run: docker run --rm mygento/php:${{ matrix.version }} php -i

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down

0 comments on commit eb4a8b2

Please sign in to comment.