sscdc/.forgejo/workflows/build.yaml
Moritz Ruth 05d3d5bf16
All checks were successful
Build / build (push) Successful in 2m6s
Fix build workflow
2025-02-28 23:20:25 +01:00

36 lines
889 B
YAML

name: "Build"
on:
push:
branches:
- dev
tags:
- v**
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/moritzruth/sscdc:${{ github.ref_name }}"