fix(ci): update rust #9
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: Publish GHCR | |
on: | |
push: | |
tags: | |
- "ghcr-[0-9]+.[0-9]+.[0-9]+" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
publish: | |
name: Publish GHCR | |
runs-on: ubuntu-latest | |
environment: Release | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set release version | |
run: export RELEASE_VERSION=$(python3 .github/getversion-ghcr.py) && echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV | |
- name: Build container | |
run: podman build -t "ghcr.io/saadisave/cambridge-asm-ci:${{ env.RELEASE_VERSION }}" .docker | |
- name: Add tag | |
run: podman image tag "ghcr.io/saadisave/cambridge-asm-ci:${{ env.RELEASE_VERSION }}" ghcr.io/saadisave/cambridge-asm-ci:latest | |
- name: Login to ghcr.io | |
run: echo "${{ secrets.GHCR_TOKEN }}" | podman login ghcr.io -u=saadisave --password-stdin | |
- name: Push | |
run: podman push "ghcr.io/saadisave/cambridge-asm-ci:${{ env.RELEASE_VERSION }}" && podman push ghcr.io/saadisave/cambridge-asm-ci:latest |