Files
Jannik eaec6ed5c8
Build and Push Docker Image / build-and-push (push) Canceled after 0s
feat: complete TokenWatch implementation with Docker, GH actions, and Live Sync
2026-08-28 16:35:08 +02:00

40 lines
918 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
- master
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:latest
labels: ${{ steps.meta.outputs.labels }}