sprout-db-migrations/.gitea/workflows/release.yml
Jake da3ba338b8
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 2s
fix(cicd): removes dockerfile specification
2024-12-19 17:11:27 -03:00

21 lines
583 B
YAML

name: Build and Push Docker Image
on:
push:
branches: [main]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Build the Docker Image
run: |
docker build -t sprout-db-migrations:latest .
- 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