sscdc/.forgejo/workflows/build.yaml
Moritz Ruth 444e1c8bec
Some checks failed
Build / build (push) Failing after 23s
Fix build workflow
2025-02-28 23:05:03 +01:00

36 lines
888 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: "${{ github.actor }}"
password: "${{ github.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 }}"