sprout-db-migrations/.gitea/workflows/release.yml
Jake 4efee19a9d
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 22s
fix(cicd): adds checkout step
2024-12-19 17:23:40 -03:00

26 lines
787 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: List repository files
run: |
ls ${{ gitea.workspace }}
- name: Build the Docker Image
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