Skip to content

Commit

Permalink
CI: tag image and push to registry
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Czarnecki <[email protected]>
  • Loading branch information
lpawelcz committed Mar 5, 2024
1 parent 41a84d8 commit 652b168
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/github-actions-cron-test-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
matrix:
os: ["ubuntu20.04", "ubuntu22.04", "centos7"]
runs-on: ubuntu-latest
env:
IMAGE: ghcr.io/antmicro/OpenROAD-flow-scripts
steps:
- name: Check out repository code
uses: actions/checkout@v3
Expand Down Expand Up @@ -58,6 +60,9 @@ jobs:
cmd="source /opt/rh/rh-python38/enable; ${cmd}"
fi
docker run openroad/flow-${{ matrix.os }}-builder /bin/bash -c "${cmd}"
- name: Tag the image
run: |
docker tag openroad/flow-${{ matrix.os }}-builder ${{ env.IMAGE }}/${{ matrix.os }}
- name: Login to GitHub Container Registry (GHCR)
if: github.event_name != 'pull_request' && github.repository == 'antmicro/OpenROAD-flow-scripts'
uses: docker/login-action@v2
Expand All @@ -68,4 +73,4 @@ jobs:

- name: Push container image to GitHub Container Registry (GHCR)
if: github.event_name != 'pull_request' && github.repository == 'antmicro/OpenROAD-flow-scripts'
run: docker push openroad/flow-${{ matrix.os }}-builder
run: docker push ${{ env.IMAGE }}/${{ matrix.os }}

0 comments on commit 652b168

Please sign in to comment.