Skip to content

Commit

Permalink
Merge pull request #16069 from opf/update-workflow-action-versions-do…
Browse files Browse the repository at this point in the history
…cker

Update workflow action versions docker
oliverguenther authored Jul 8, 2024
2 parents a20c343 + f1845fe commit fe756de
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -85,10 +85,11 @@ jobs:
./docker/prod/setup/precompile-assets.sh
# public/assets will be saved as artifact, so temporarily copying config file there as well
cp config/frontend_assets.manifest.json public/assets/frontend_assets.manifest.json
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: public/
name: public-assets-${{ github.sha }}
overwrite: true
outputs:
version: ${{ steps.extract_version.outputs.version }}
checkout_ref: ${{ steps.extract_version.outputs.checkout_ref }}
@@ -134,7 +135,7 @@ jobs:
run: |
cp ./docker/prod/Dockerfile ./Dockerfile
- name: Download precompiled public assets
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: public-assets-${{ github.sha }}
path: public/
@@ -164,7 +165,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
context: git
labels: |
@@ -177,7 +178,7 @@ jobs:
${{ env.REGISTRY_IMAGE }}
- name: Build image
id: build
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
platforms: ${{ matrix.platform }}
@@ -209,7 +210,7 @@ jobs:
wget -O- --retry-on-http-error=503,502 --retry-connrefused http://localhost:8080/api/v3
- name: Push image
id: push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
platforms: ${{ matrix.platform }}
@@ -226,12 +227,13 @@ jobs:
digest="${{ steps.push.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
- name: Upload digest
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: digests-${{ matrix.target }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
overwrite: true
merge:
runs-on: ubuntu-latest
strategy:
@@ -242,7 +244,7 @@ jobs:
- build
steps:
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests-${{ matrix.target }}
path: /tmp/digests
@@ -256,7 +258,7 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
labels: |

0 comments on commit fe756de

Please sign in to comment.