diff options
-rw-r--r-- | .github/workflows/publish.yml | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5fc412d..6edb945 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,19 +16,16 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - name: Login to GitHub Container Registry - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.CR_PAT }} - name: Generate tag run: echo "CUSTOM_DOCKER_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV - name: Build and push central Docker image - uses: docker/build-push-action@v2.2.1 + uses: docker/build-push-action@v1 with: - tags: ghcr.io/Trumeet/dn42peering:$CUSTOM_DOCKER_TAG - push: true + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.PAT }} + repository: ${{ github.repository }} + tags: $CUSTOM_DOCKER_TAG build_agent: runs-on: ubuntu-latest steps: |