fix(cicd): adds checkout step
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 14s

This commit is contained in:
Jake 2024-12-19 17:27:53 -03:00
parent 4efee19a9d
commit 777ea50b62

View File

@ -18,8 +18,14 @@ jobs:
run: |
cd ${{ gitea.workspace }} && docker build -t sprout-db-migrations:latest -f Dockerfile .
- name: Login to Container Registry
run: echo "${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin ${{ secrets.DOCKER_REGISTRY }}
- name: Push the Docker Image
run: docker push ${{ secrets.DOCKER_REGISTRY }}/sprout-db-migrations:latest
- name: Log in to Docker Hub - Main web app container registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
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