sscdc/.forgejo/workflows/build.yaml
Moritz Ruth ba7121933f
Some checks failed
Build / build (push) Failing after 2m19s
Fix build workflow
2025-02-28 22:58:39 +01:00

34 lines
825 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:
push: true
tags: "git.moritzruth.de/moritzruth/sscdc:${{ github.ref_name }}"