use GitHub Packages Container Registry instead of Docker Hub
This commit is contained in:
parent
c865369ebd
commit
af572d0683
|
@ -37,11 +37,12 @@ jobs:
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
registry: ghcr.io
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
|
@ -54,4 +55,4 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
file: Containerfile
|
file: Containerfile
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: retrospring/retrospring:${{ env.RETROSPRING_VERSION }}
|
tags: ghcr.io/retrospring/retrospring:${{ env.RETROSPRING_VERSION }}
|
||||||
|
|
Loading…
Reference in New Issue