diora-web/.forgejo/workflows/docker.yml
marwin e1b18f392e
All checks were successful
Build and push Docker image / build (push) Successful in 12s
Test / test (push) Successful in 16s
Show build time in bottom-right corner
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 21:35:41 +01:00

41 lines
1 KiB
YAML

name: Build and push Docker image
on:
push:
branches:
- master
- testing
jobs:
build:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set image tag
id: tag
run: |
if [ "${{ github.ref_name }}" = "master" ]; then
echo "tag=latest" >> $GITHUB_OUTPUT
else
echo "tag=${{ github.ref_name }}" >> $GITHUB_OUTPUT
fi
- name: Log in to Forgejo registry
uses: docker/login-action@v3
with:
registry: fg.creamfresh.xyz
username: ${{ github.actor }}
password: ${{ secrets.FORGEJO_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: fg.creamfresh.xyz/mrwnslz/diora-web:${{ steps.tag.outputs.tag }}
build-args: BUILD_TIME=${{ github.event.head_commit.timestamp }}