Commit 82d065cf authored by Adriana Fernández-Fernández's avatar Adriana Fernández-Fernández
Browse files

Set repository name as env variable for building image

parent cab93b33
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -26,10 +26,14 @@ jobs:
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}

      - name: Lowercase github.repository
        run: |
          echo "REPO_NAME=${GITHUB_REPOSITORY@L}" >> ${GITHUB_ENV}

      - name: Build Docker image
        run: |
          docker build -t ghcr.io/sunriseopenoperatorplatform/federation-manager:0.0.1 .
          docker build -t ghcr.io/${{ env.REPO_NAME }}:0.0.1 .

      - name: Push Docker image
        run: |
          docker push ghcr.io/sunriseopenoperatorplatform/federation-manager:0.0.1
          docker push ghcr.io/${{ env.REPO_NAME }}:0.0.1