Files
coop-cloud-backend/.gitea/workflows/build.yaml
T
Brooke 4c61308655
Build And Publish nightly / build-latest (push) Failing after 4m25s
split nightly builds into their own steps to avoid caching limits
2026-10-21 11:32:12 -04:00

55 lines
1.6 KiB
YAML

name: Build And Publish nightly
on:
push:
branches:
- '*'
jobs:
build-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
submodules: 'recursive'
fetch-depth: 0
- name: Get short commit SHA
id: vars
run: |
calculatedSha=$(git rev-parse --short ${{ github.sha }})
echo "COMMIT_SHORT_SHA=$calculatedSha" >> $GITHUB_ENV
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
with:
platforms: linux/amd64
- name: Login to Self-Hosted Registry
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: git.coopcloud.tech
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Build and Push nightly+HASH
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: git.coopcloud.tech/toolshed/coop-cloud-webui:nightly-${{ env.COMMIT_SHORT_SHA }}
- name: Build and Push nightly
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: git.coopcloud.tech/toolshed/coop-cloud-webui:nightly