Build images on push, tweak Yosys installation #41
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: 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 |