chore: rename the file #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release binaries on tag | |
on: | |
push: | |
tags: | |
## regex to check major, minor and patch versions of tag along with alpha/beta ending in tag | |
- 'v[0-9]+\.[0-9]+(\.[0-9]+)?(-[a-zA-Z0-9]+)?' | |
branches: | |
- master | |
# added for testing the action will be removed once finalised | |
- feature/* | |
jobs: | |
build: | |
uses: ./.github/workflows/rust_build.yml | |
publish: | |
runs-on: ubuntu-latest | |
needs: build | |
if: needs.build.result == 'success' | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
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 | |
run: | |
echo running on branch ${GITHUB_REF##*/} | |
# run: | | |
# docker build -f Dockerfile.chronos-pg-migration . --tag ghcr.io/kindredgroup/chronos-pg-migration:latest | |
# docker push ghcr.io/kindredgroup/chronos:latest |