Skip to content

Commit

Permalink
Update promote-env.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-benoit authored Dec 29, 2024
1 parent 3af97ca commit 5b26c9d
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/promote-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,19 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: build container
run: |
docker build \
--tag ghcr.io/${{ github.repository_owner }}/${{ env.WORKLOAD_NAME }}:test \
--platform linux/amd64,linux/arm64 \
app/
- name: login to ghcr
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login \
ghcr.io \
-u $ \
--password-stdin
- name: push container in ghcr
run: |
docker push \
ghcr.io/${{ github.repository_owner }}/${{ env.WORKLOAD_NAME }}:test
- name: Build and push
uses: docker/build-push-action@v6
with:
file: app/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: "ghcr.io/${{ github.repository_owner }}/${{ env.WORKLOAD_NAME }}:test"
- run: |
docker images
docker inspect ghcr.io/${{ github.repository_owner }}/${{ env.WORKLOAD_NAME }}:test

0 comments on commit 5b26c9d

Please sign in to comment.