twenty-one/.forgejo/workflows/build.yaml
Moritz Ruth 468d717714
All checks were successful
Build / build (push) Successful in 1m26s
Cleanup
2025-03-03 00:54:12 +01:00

34 lines
860 B
YAML

name: "Build"
on:
push:
branches:
- main
jobs:
build:
runs-on: "docker"
container:
image: "code.forgejo.org/oci/node:22-alpine"
steps:
- name: "Checkout"
uses: "https://code.forgejo.org/actions/checkout@v4"
- name: "Install Docker"
run: |
apk add docker
- name: "Login to the container registry"
uses: "https://code.forgejo.org/docker/login-action@v3"
with:
registry: "git.moritzruth.de"
username: "moritzruth"
password: "${{ secrets.PACKAGES_TOKEN }}"
- name: "Build and push the container image"
uses: "https://code.forgejo.org/docker/build-push-action@v6"
with:
context: "."
file: "./Containerfile"
push: true
tags: "git.moritzruth.de/${{ github.repository }}:latest"