Build and push CIRCT CI build image #26
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: Build and push CIRCT CI build image | |
on: | |
workflow_dispatch: | |
jobs: | |
build-circt-build-image: | |
name: Build and push Docker CI builds | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get CIRCT images repo | |
uses: actions/checkout@v4 | |
- name: Build and push image | |
working-directory: ./circt-ci-build | |
run: | | |
TAG=$(date -u +%Y%m%d%H%M%S) | |
echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin | |
docker build . --tag ghcr.io/${{github.repository}}/circt-ci-build:$TAG | |
docker push ghcr.io/${{github.repository}}/circt-ci-build:$TAG | |
docker tag ghcr.io/${{github.repository}}/circt-ci-build:$TAG ghcr.io/${{github.repository}}/circt-ci-build:latest | |
docker push ghcr.io/${{github.repository}}/circt-ci-build:latest |