sprout-db-migrations/.gitea/workflows/release.yml
Jake 689139a9e6
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 11s
fix(cicd): adds checkout step
2024-12-19 17:31:16 -03:00

28 lines
680 B
YAML

name: Build and Push Docker Image
on:
push:
branches: [main]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Log in to Docker Hub - Main web app container registry
uses: docker/login-action@v1
with:
registyr: ${{ secrets.DOCKER_REGISTRY }}
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