Skip to content

Build and push CIRCT CI build image #26

Build and push CIRCT CI build image

Build and push CIRCT CI build image #26

Workflow file for this run

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