Files
calendar/.gitea/workflows/docker.yml
Connor Johnstone ce74750d85
Some checks failed
Build and Push Docker Image / docker (push) Failing after 20s
Trying another approach
2025-09-02 12:38:08 -04:00

35 lines
853 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: ${{ variables.REGISTRY }}
username: ${{ variables.USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
${{ variables.REGISTRY }}/connor/calendar:latest
${{ variables.REGISTRY }}/connor/calendar:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max