Skip to content

Commit

Permalink
chore: create separate files for release chronos and db-migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Amninder Kaur committed Aug 16, 2023
1 parent df9bd0e commit b843e83
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 41 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/publish.yml

This file was deleted.

26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
name: release binaries on tag
name: release app binary on tag

# on tag push, build and push docker images to ghcr.io
# and creating a GitHub release
# and publish the release to GitHub
on:
release:
types: [created]
push:
tags:
- '*' # push all tags
# only build on tags that start with 'v'
# having major, minor and path version numbers
# along with alpha beta support
# e.g. v1.0.0-alpha.1, v1.0.0-beta.1, v1.0.0
- 'v[0-9]+.[0-9]+.[0-9]+(-[a-zA-Z0-9]+)+.[0-9]?'

jobs:
build:
Expand All @@ -23,15 +31,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.AMN_PAT }}

# - name: Build the chronos Docker image
# run: |
# docker build -f Dockerfile.chronos . --tag ghcr.io/kindredgroup/chronos:latest
# docker push ghcr.io/kindredgroup/chronos:latest
- name: Build the chronos Docker image
- name: Build and publish chronos for chronos image
run: |
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
# run: |
# docker build -f Dockerfile.chronos-pg-migration . --tag ghcr.io/kindredgroup/chronos-pg-migration:latest
# docker push ghcr.io/kindredgroup/chronos:latest
docker build -f Dockerfile.chronos . --tag ghcr.io/GITHUB_REPOSITORY:$GITHUB_REF_NAME
docker push ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME

0 comments on commit b843e83

Please sign in to comment.