Skip to content

Commit

Permalink
Use correct image suffix for alpine/debian (runatlantis#2775)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocode authored and krrrr38 committed Dec 16, 2022
1 parent 4ce2088 commit 442bbd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/atlantis-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
env:
DOCKERFILE: "Dockerfile.${{ matrix.image_type }}"
IMAGE_BASE: ghcr.io/${{ github.repository_owner }}/atlantis-base
IMAGE_SUFFIX: ${{ contains(matrix.image_type, 'alpine') && '-alpine' || '' }}
IMAGE_SUFFIX: ${{ matrix.image_type != 'alpine' && format('-{0}', matrix.image_type) || '' }}
steps:
- uses: actions/checkout@v3

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/atlantis-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
RELEASE_TYPE: ${{ contains(github.ref, 'pre') && 'pre' || 'stable' }}
RELEASE_TAG: ${{ contains(github.ref, 'pre') && 'prerelease-latest' || 'latest' }}
IMAGE_BASE: ghcr.io/${{ github.repository_owner }}/atlantis
IMAGE_SUFFIX: ${{ contains(matrix.image_type, 'alpine') && '-alpine' || '' }}
IMAGE_SUFFIX: ${{ matrix.image_type != 'alpine' && format('-{0}', matrix.image_type) || '' }}
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -63,6 +63,7 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: |
ghcr.io/${{ github.repository_owner }}/atlantis:dev${{ env.IMAGE_SUFFIX }}
ghcr.io/${{ github.repository_owner }}/atlantis:dev-${{ matrix.image_type }}
# Publish release to container registry
- name: Populate release version
Expand Down

0 comments on commit 442bbd9

Please sign in to comment.