Files
ToBePlayed-Frontend/.forgejo/workflows/docker-publish.yml
T

28 lines
758 B
YAML

name: Build and Publish Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to Codeberg Container Registry
uses: docker/login-action@v3
with:
registry: codeberg.org
username: ${{ github.repository_owner }}
# Requires a generated Application Token from your Codeberg settings saved as a repository secret
password: ${{ secrets.CODEBERG_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: codeberg.org/${{ github.repository }}:latest