Files
calendar/.gitea/workflows/docker.yml
Connor Johnstone 5456d7140c
Some checks failed
Build and Push Docker Image / docker (push) Failing after 21s
Manual updates to fix some deployment steps
2025-09-02 16:03:11 -04:00

36 lines
876 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY }}
username: ${{ vars.USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
dockerfile: ./backend/Dockerfile
push: true
tags: |
${{ vars.REGISTRY }}/connor/calendar:latest
${{ vars.REGISTRY }}/connor/calendar:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max