diff --git a/.github/workflows/cd-prod.yaml b/.github/workflows/cd-prod.yaml index 4f3e00c..9555383 100644 --- a/.github/workflows/cd-prod.yaml +++ b/.github/workflows/cd-prod.yaml @@ -3,6 +3,8 @@ name: CD prod on: push: branches: [ "master"] + tags: + - 'v*' jobs: build: @@ -24,6 +26,15 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GHCR_TOKEN }} + - name: Determine the version tag + id: version_tag + run: | + if [[ ${{ github.ref_type }} == 'tag' ]]; then + echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + else + echo "TAG_NAME=${GITHUB_SHA}" >> $GITHUB_ENV + fi + - name: Build and push uses: docker/build-push-action@v5 with: @@ -31,6 +42,6 @@ jobs: platforms: linux/amd64 file: ./Dockerfile push: true - tags: ghcr.io/shapeblock/operator:${{ github.sha }} + tags: ghcr.io/shapeblock/operator:${{ env.TAG_NAME }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d3649b..5a5e20b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [1.0.0] - 2024-08-08 +- Change NS to shapeblock +- Allow direct App YML edits. + ## 2024-07-15 - Add healthcheck probe. - Update status of service after deployment.