fix(cicd): adds checkout step
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 14s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 14s
This commit is contained in:
parent
4efee19a9d
commit
777ea50b62
@ -18,8 +18,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd ${{ gitea.workspace }} && docker build -t sprout-db-migrations:latest -f Dockerfile .
|
cd ${{ gitea.workspace }} && docker build -t sprout-db-migrations:latest -f Dockerfile .
|
||||||
|
|
||||||
- name: Login to Container Registry
|
- name: Log in to Docker Hub - Main web app container registry
|
||||||
run: echo "${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin ${{ secrets.DOCKER_REGISTRY }}
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
- name: Push the Docker Image
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
run: docker push ${{ secrets.DOCKER_REGISTRY }}/sprout-db-migrations:latest
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
- name: Build and push Main web app container image to registry
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: latest
|
||||||
|
file: ./Dockerfile
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user