Skip to content

Commit

Permalink
Use docker to push image
Browse files Browse the repository at this point in the history
  • Loading branch information
bdhoine committed Dec 11, 2024
1 parent 8656343 commit ca8c48a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: docker/setup-buildx-action@v3
with:
platforms: linux/${{ matrix.arch }}
- name: Log in to the container registry
- name: Log in to container registry
if: github.ref == 'refs/heads/main'
uses: docker/login-action@v3
with:
Expand All @@ -54,7 +54,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.registry }}/${{ github.repository }}
- name: Build and push docker image
- name: Build docker image
id: push
uses: docker/build-push-action@v5
with:
Expand All @@ -63,9 +63,12 @@ jobs:
tags: ${{ env.registry }}/${{ github.repository }}:${{ matrix.runmode }}-${{ env.aem_sdk_version }}-${{ matrix.arch }}
platforms: linux/${{ matrix.arch }}
labels: ${{ steps.meta.outputs.labels }}
load: true
build-args: |
RUNMODE=${{ matrix.runmode }}
PORT=${{ matrix.runmode == 'author' && '4502' || '4503' }}
- name: Push manifest to registry
run: docker push ${{ env.registry }}/${{ github.repository }}:${{ matrix.runmode }}-${{ env.aem_sdk_version }}-${{ matrix.arch }}
- name: Generate artifact attestation
if: github.ref == 'refs/heads/main'
uses: actions/attest-build-provenance@v2
Expand All @@ -86,7 +89,7 @@ jobs:
runs-on: ubuntu-latest
needs: build-images
steps:
- name: Log in to the container registry
- name: Log in to container registry
uses: docker/login-action@v3
with:
registry: ${{ env.registry }}
Expand Down

0 comments on commit ca8c48a

Please sign in to comment.