From 652b16852022bd130c12d922e3ceeab776264d81 Mon Sep 17 00:00:00 2001 From: Pawel Czarnecki Date: Tue, 5 Mar 2024 11:09:50 +0100 Subject: [PATCH] CI: tag image and push to registry Signed-off-by: Pawel Czarnecki --- .github/workflows/github-actions-cron-test-installer.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-cron-test-installer.yml b/.github/workflows/github-actions-cron-test-installer.yml index 6669eb33d2..e4c5bcfe38 100644 --- a/.github/workflows/github-actions-cron-test-installer.yml +++ b/.github/workflows/github-actions-cron-test-installer.yml @@ -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 @@ -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 @@ -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 }}