Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Sep 3, 2024
1 parent 0be4ed2 commit 32fae2e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,42 +21,42 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Build sscep-builder image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
tags: sscep-builder
target: sscep-builder

- name: Build sscep-dist image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
tags: sscep-dist
target: sscep-dist
outputs: type=docker,dest=sscep-dist.tar

- name: Store sscep-dist image
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: sscep-dist-${{ github.sha }}
path: sscep-dist.tar

- name: Build sscep image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
tags: sscep
target: sscep
outputs: type=docker,dest=sscep.tar

- name: Store sscep image
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: sscep-${{ github.sha }}
path: sscep.tar
Expand All @@ -68,23 +68,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
if: vars.REGISTRY == 'ghcr.io'

- name: Log in to other container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
if: vars.REGISTRY != 'ghcr.io'

- name: Retrieve sscep-dist image
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: sscep-dist-${{ github.sha }}
path: sscep-dist.tar
Expand All @@ -96,7 +96,7 @@ jobs:
docker push ${{ vars.REGISTRY }}/$NAMESPACE/sscep-dist:latest
- name: Retrieve sscep image
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: sscep-${{ github.sha }}
path: sscep.tar
Expand Down

0 comments on commit 32fae2e

Please sign in to comment.