mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 02:52:12 +00:00
login first before docker build
This commit is contained in:
1 parent
d483d3cc2c
commit
4a81758f79
1 file changed
+4
-4
@@ -23,15 +23,15 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Build image
|
||||
#run: docker build . --file Dockerfile --tag $IMAGE_NAME
|
||||
run: docker build . --file Dockerfile --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}"
|
||||
|
||||
- name: Log into GitHub Container Registry
|
||||
# NB: We no longer use PATs for auth as they grant broad access.
|
||||
#run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
|
||||
- name: Build image
|
||||
#run: docker build . --file Dockerfile --tag $IMAGE_NAME
|
||||
run: docker build . --file Dockerfile --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}"
|
||||
|
||||
- name: Push image to GitHub Container Registry
|
||||
run: |
|
||||
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
|
||||
|
||||
Reference in new issue
Block a user