Skip to content

fix(ci): update cross compilers #8

fix(ci): update cross compilers

fix(ci): update cross compilers #8

Workflow file for this run

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