Skip to content

Commit

Permalink
Pre-flight check.
Browse files Browse the repository at this point in the history
  • Loading branch information
badri committed Aug 8, 2024
1 parent 22b1867 commit d69d744
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/cd-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: CD prod
on:
push:
branches: [ "master"]
tags:
- 'v*'

jobs:
build:
Expand All @@ -24,13 +26,22 @@ 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:
context: .
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit d69d744

Please sign in to comment.