From 61a79e03fba39cfeee22960dd8bdf38f565e8aa6 Mon Sep 17 00:00:00 2001 From: Bill Date: Sun, 15 Sep 2024 16:00:24 -0400 Subject: [PATCH] Convert repository to lowercase --- .gitea/workflows/build.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 4582884..20c508d 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -26,9 +26,21 @@ jobs: username: ${{ gitea.repository_owner }} password: ${{ secrets.REGISTRY_TOKEN }} + - name: Prepare Meta + id: prepare + run: | + BITCOIN_VERSION=26.2 + PLATFORM="linux/amd64" + REPO=${{ gitea.repository }} + + echo ::set-output name=build_date::$(date -u +'%Y-%m-%dT%H:%M:%SZ') + echo ::set-output name=docker_platform::${PLATFORM} + echo ::set-output name=repository::${REPO,,} + echo ::set-output name=version::${BITCOIN_VERSION} + - name: Build Docker image uses: docker/build-push-action@v6 with: - platforms: linux/amd64 + platforms: ${{ steps.prepare.outputs.docker_platform }} push: true - tags: git.prettyhefty.com/${{ gitea.repository_owner }}/${{ gitea.repository }}:26.2 \ No newline at end of file + tags: git.prettyhefty.com/${{ steps.prepare.outputs.repository }}:${{ steps.prepare.outputs.version }} \ No newline at end of file