Skip to content

Commit

Permalink
ci: Refactor GitHub Actions workflow for Docker image publishing
Browse files Browse the repository at this point in the history
- Refactor Docker image publishing workflow
- Improve maintainability by moving `DOCKER_DEFAULT_PLATFORM` definition into the `make publish-image` step
  • Loading branch information
johnnyhuy committed Apr 18, 2024
1 parent 74c4523 commit 186f967
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ jobs:

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_DEFAULT_PLATFORM: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- run: make publish-image
env:
DOCKER_DEFAULT_PLATFORM: ${{ matrix.platform }}

0 comments on commit 186f967

Please sign in to comment.