Florian 94c99bb508
Some checks failed
Building and publishing Homebrewery as Docker Image / build (release) Failing after 9m49s
Refactor Dockerfile and build.yaml to include CREATED_AT in build args and update label formatting
2025-06-24 13:19:03 +02:00

56 lines
1.6 KiB
YAML

name: Building and publishing Homebrewery as Docker Image
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-24.04
env:
TAG_NAME: ${{ github.event.release.tag_name }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Checkout homebrewery
uses: actions/checkout@v4
with:
github-server-url: https://github.com
repository: naturalcrit/homebrewery.git
ref: ${{ github.event.release.tag_name }}
token: ${{ secrets.GH_TOKEN }}
path: homebrewery
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: git.morlana.online
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Getting build time
run: |
echo "CREATED_AT=$(date -u --rfc-3339=seconds)" >> "$GITHUB_ENV"
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
build-args: |
VERSION=${{ github.event.release.tag_name }}
REVISION=${{ github.sha }}
CREATED_AT=$CREATED_AT
tags: |
git.morlana.online/${{ github.repository_owner }}/homebrewery:latest
git.morlana.online/${{ github.repository_owner }}/homebrewery:${{ github.event.release.tag_name }}