From baca3acd50e2f42564e1f461a1cdcfedb568150c Mon Sep 17 00:00:00 2001 From: Marijn Doeve Date: Wed, 6 Mar 2024 20:29:27 +0100 Subject: [PATCH] Build --- .gitea/workflows/release-tag.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/release-tag.yml b/.gitea/workflows/release-tag.yml index 3639d79..ac7636b 100644 --- a/.gitea/workflows/release-tag.yml +++ b/.gitea/workflows/release-tag.yml @@ -9,13 +9,9 @@ jobs: runs-on: ubuntu-latest container: image: catthehacker/ubuntu:act-22.04 - env: - DOCKER_LATEST: latest steps: - name: Checkout uses: actions/checkout@v4 - with: - fetch-depth: 0 # all history for all branches and tags - name: Set up Docker BuildX uses: docker/setup-buildx-action@v2 @@ -27,21 +23,27 @@ jobs: username: ${{ gitea.repository_owner }} password: ${{ secrets.REGISTRY_TOKEN }} - - name: Get Meta + - name: Docker meta id: meta + uses: docker/metadata-action@v5 + with: + images: ${{github.repository}} + + - name: Lowercase Name run: | - echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT + echo "IMAGE_NAME=`echo ${{github.repository}} | tr '[:upper:]' '[:lower:]'`" >> ${GITHUB_ENV} - name: Build and push uses: docker/build-push-action@v5 env: ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119 - IMAGE_NAME: gitea.marijndoeve.nl/Harmitcraft/${{ steps.meta.outputs.REPO_NAME }} with: context: containers/web - file: ./Containerfile + file: containers/web/Containerfile platforms: | linux/amd64 push: true - tags: | - ${{ env.IMAGE_NAME }}:${{ env.DOCKER_LATEST }} + build-args: | + DOCKER_METADATA_OUTPUT_JSON + # tags: | + # gitea.marijndoeve.nl/${{ env.IMAGE_NAME }}:latest