Skip to content

Build images on push, tweak Yosys installation #41

Build images on push, tweak Yosys installation

Build images on push, tweak Yosys installation #41

name: Build and push images
on:
push:
paths:
- 'integration_test/**'
pull_request:
release:
types: [published]
workflow_dispatch:
jobs:
build-integration-test-image:
name: Integration Test Image
runs-on: ubuntu-latest
defaults:
run:
working-directory: integration_test
steps:
- uses: actions/checkout@v4
- name: Setup Environment
run: echo "GIT_TAG=$(echo $GITHUB_REF | cut -d / -f 3)" >> $GITHUB_ENV
- name: Build Image
run: |
docker build . --tag ghcr.io/${{github.repository}}/circt-integration-test:$GIT_TAG
- name: Push Image
if: ${{ github.event_name == 'release' }}
run: |
echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
docker push ghcr.io/${{github.repository}}/circt-integration-test:$GIT_TAG