Remove dockerhub login

This commit is contained in:
Zack Koppert 2023-06-30 15:57:06 -07:00 committed by GitHub
parent 74bb871df3
commit 0dd6586c92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,12 +34,6 @@ jobs:
- name: Setup Docker BuildX - name: Setup Docker BuildX
uses: docker/setup-buildx-action@v2.5.0 uses: docker/setup-buildx-action@v2.5.0
- name: Login to DockerHub
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GHCR - name: Login to GHCR
uses: docker/login-action@v2.1.0 uses: docker/login-action@v2.1.0
with: with:
@ -88,12 +82,10 @@ jobs:
- name: Retag and Push Images - name: Retag and Push Images
uses: akhilerm/tag-push-action@v2.1.0 uses: akhilerm/tag-push-action@v2.1.0
with: with:
src: ghcr.io/github/super-linter:${{ matrix.images.prefix }}latest src: ghcr.io/super-linter/super-linter:${{ matrix.images.prefix }}latest
dst: | dst: |
github/super-linter:${{ matrix.images.prefix }}v5 ghcr.io/super-linter/super-linter:${{ matrix.images.prefix }}v5
github/super-linter:${{ matrix.images.prefix }}${{ env.RELEASE_VERSION }} ghcr.io/super-linter/super-linter:${{ matrix.images.prefix }}${{ env.RELEASE_VERSION }}
ghcr.io/github/super-linter:${{ matrix.images.prefix }}v5
ghcr.io/github/super-linter:${{ matrix.images.prefix }}${{ env.RELEASE_VERSION }}
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -120,7 +112,7 @@ jobs:
status: ${{ job.status }} status: ${{ job.status }}
deployment_id: ${{ steps.deployment.outputs.deployment_id }} deployment_id: ${{ steps.deployment.outputs.deployment_id }}
env: ${{ steps.deployment.outputs.env }} env: ${{ steps.deployment.outputs.env }}
env_url: https://github.com/github/super-linter/releases/tag/${{ env.RELEASE_VERSION }} env_url: https://github.com/super-linter/super-linter/releases/tag/${{ env.RELEASE_VERSION }}
- name: Create Issue on Failure - name: Create Issue on Failure
if: failure() if: failure()
@ -134,6 +126,7 @@ jobs:
title: "Failed to deploy release to production", title: "Failed to deploy release to production",
body: "Automation has failed us! Failed to push release ${{ env.RELEASE_VERSION }}\nMore information can be found at:\n - ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", body: "Automation has failed us! Failed to push release ${{ env.RELEASE_VERSION }}\nMore information can be found at:\n - ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
assignees: [ assignees: [
'lindluni' 'zkoppert',
'Hanse00'
] ]
}) })