chore: not able to make tags work #6
Workflow file for this run
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 tag push, build and push docker images to ghcr.io | |
on: | |
push: | |
tags: | |
- '*' # push all tags | |
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 "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 |