Skip to content

Commit

Permalink
use docker convention for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
zaro0508 committed Jan 19, 2024
1 parent bc007bc commit aefa5c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,13 @@ jobs:
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
# docker convention: edge tag refers to the very latest code
- name: Build and push Docker image to sceptreorg/sceptre:${{ steps.meta.outputs.tags }}
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: sceptreorg/sceptre:${{ steps.meta.outputs.tags }}
tags: sceptreorg/sceptre:edge
labels: ${{ steps.meta.outputs.labels }}
docker-build-release:
if: ${{ github.ref_type == 'tag' }}
Expand All @@ -148,6 +149,7 @@ jobs:
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
# docker convention: latest tag refers to the last stable release
- name: Build and push Docker image to sceptreorg/sceptre:latest
uses: docker/build-push-action@v5
with:
Expand Down

0 comments on commit aefa5c8

Please sign in to comment.