From e29e50eede4d34a6180c455b66333424af82ccca Mon Sep 17 00:00:00 2001 From: Niklas Date: Tue, 5 Dec 2023 15:16:36 +0100 Subject: [PATCH] harbor push fix --- .github/workflows/push-release.yaml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/push-release.yaml b/.github/workflows/push-release.yaml index 16c5bbc..5481ce9 100644 --- a/.github/workflows/push-release.yaml +++ b/.github/workflows/push-release.yaml @@ -23,15 +23,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - # - name: Log in to Harbor Registry - # uses: docker/login-action@v3 - # with: - # registry: harbor.studio.scaleoutplatform.com - # username: robot$github-studio - # password: ${{ secrets.HARBOR_TOKEN }} - - # docker tag fedn-kotlin harbor.studio.scaleoutplatform.com/scaleoutstudio/fedn-kotlin:fedn-kotlin - # docker push harbor.studio.scaleoutplatform.com/scaleoutstudio/fedn-kotlin:fedn-kotlin + - name: Tag Docker image run: | docker tag fedn-kotlin ghcr.io/scaleoutsystems/android-client:fedn-kotlin @@ -39,3 +31,18 @@ jobs: - name: Push Docker images run: | docker push ghcr.io/scaleoutsystems/android-client:fedn-kotlin + + - name: Log in to Harbor Registry + uses: docker/login-action@v3 + with: + registry: harbor.studio.scaleoutplatform.com + username: robot$github-android + password: ${{ secrets.HARBOR_TOKEN }} + + - name: Tag Docker image + run: | + docker tag fedn-kotlin harbor.studio.scaleoutplatform.com/scaleoutstudio/fedn-kotlin:latest + + - name: Push Docker images + run: | + docker push harbor.studio.scaleoutplatform.com/scaleoutstudio/fedn-kotlin:latest \ No newline at end of file