fix: move Docker Hub login step into build job
Some checks failed
Build And Publish Production Image / Build And Publish Production Image (push) Failing after 1m48s
Some checks failed
Build And Publish Production Image / Build And Publish Production Image (push) Failing after 1m48s
This commit is contained in:
@@ -6,16 +6,8 @@ on:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
dockerhub-login:
|
||||
name: Log In To Docker Hub
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Log in to Docker Hub
|
||||
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login docker.io -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
|
||||
|
||||
build:
|
||||
name: Build And Publish Production Image
|
||||
needs: dockerhub-login
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
REGISTRY: gitea.lab
|
||||
@@ -28,6 +20,9 @@ jobs:
|
||||
- name: Verify Docker CLI
|
||||
run: docker version
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login docker.io -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
|
||||
|
||||
- name: Build all-in-one image
|
||||
run: docker build -t condado-newsletter:latest -f Dockerfile.allinone .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user