Skip to content

Commit d502bed

Browse files
authored
workflow: point latest release to latest release (#1677)
* workflow: point latest release to latest release Signed-off-by: Rui Chen <[email protected]> * use dev instead of nightly Signed-off-by: Rui Chen <[email protected]>
1 parent a049155 commit d502bed

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/atlantis-image.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ jobs:
2424
username: ${{ github.actor }}
2525
password: ${{ secrets.GITHUB_TOKEN }}
2626

27-
# Publish latest image to container registry
28-
- name: build atlantis:latest image
27+
# Publish dev image to container registry
28+
- name: build atlantis:dev image
2929
if: ${{ github.event_name == 'push'}}
3030
run: |
3131
make build-service
32-
docker build -t ghcr.io/runatlantis/atlantis:latest .
33-
- name: publish atlantis:latest image
32+
docker build -t ghcr.io/runatlantis/atlantis:dev .
33+
- name: publish atlantis:dev image
3434
if: ${{ github.event_name == 'push'}}
3535
run: |
36-
docker push ghcr.io/runatlantis/atlantis:latest
36+
docker push ghcr.io/runatlantis/atlantis:dev
3737
3838
# Publish release to container registry
3939
- name: populate release version
4040
if: ${{ github.event_name == 'release'}}
41-
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
41+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
4242
- name: build atlantis:$RELEASE_VERSION release image
4343
if: ${{ github.event_name == 'release'}}
4444
run: |
@@ -48,3 +48,5 @@ jobs:
4848
if: ${{ github.event_name == 'release'}}
4949
run: |
5050
docker push ghcr.io/runatlantis/atlantis:$RELEASE_VERSION
51+
docker tag ghcr.io/runatlantis/atlantis:$RELEASE_VERSION ghcr.io/runatlantis/atlantis:latest
52+
docker push ghcr.io/runatlantis/atlantis:latest

0 commit comments

Comments
 (0)