From 1926805ab06570a767828fc0af3f9cbc41e334c1 Mon Sep 17 00:00:00 2001 From: Pawel Czarnecki Date: Tue, 5 Mar 2024 09:29:11 +0100 Subject: [PATCH] CI: push docker images to container registry Signed-off-by: Pawel Czarnecki --- .../workflows/github-actions-cron-test-installer.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/github-actions-cron-test-installer.yml b/.github/workflows/github-actions-cron-test-installer.yml index ba7b5725d5..6669eb33d2 100644 --- a/.github/workflows/github-actions-cron-test-installer.yml +++ b/.github/workflows/github-actions-cron-test-installer.yml @@ -58,3 +58,14 @@ jobs: cmd="source /opt/rh/rh-python38/enable; ${cmd}" fi docker run openroad/flow-${{ matrix.os }}-builder /bin/bash -c "${cmd}" + - name: Login to GitHub Container Registry (GHCR) + if: github.event_name != 'pull_request' && github.repository == 'antmicro/OpenROAD-flow-scripts' + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: gha + password: ${{ github.token }} + + - 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