snapify-authentik/.github/workflows/docker.yml
2023-07-16 20:05:27 +02:00

29 lines
No EOL
654 B
YAML

name: docker
on:
push:
branches:
- 'main'
jobs:
build-and-publish:
name: Build & Publish
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and push Docker image to ghcr.io
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/marconlp/snapify:latest