From e8c68b8325eac5d10953c483d2c7415bd25df18a Mon Sep 17 00:00:00 2001 From: Paramtamtam <7326800+tarampampam@users.noreply.github.com> Date: Wed, 25 Aug 2021 09:51:37 +0500 Subject: [PATCH] Docker image pushing into ghcr.io added --- .github/workflows/release.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 68d80e3..2396f0c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -132,8 +132,18 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 # Action page: - - name: Make docker login - run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_LOGIN }}" --password-stdin + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_LOGIN }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ secrets.GHCR_LOGIN }} + password: ${{ secrets.GHCR_PASSWORD }} - name: Generate builder values id: values @@ -147,6 +157,8 @@ jobs: --platform "linux/amd64,linux/arm64" \ --tag "spiralscout/roadrunner:latest" \ --tag "spiralscout/roadrunner:${{ steps.values.outputs.version }}" \ + --tag "ghcr.io/spiralscout/roadrunner:latest" \ + --tag "ghcr.io/spiralscout/roadrunner:${{ steps.values.outputs.version }}" \ --build-arg "APP_VERSION=${{ steps.values.outputs.version }}" \ --build-arg "BUILD_TIME=${{ steps.values.outputs.timestamp }}" \ --file ./Dockerfile \