From b3ed6837aa3a81e8e26284e3833d352e210a0bc4 Mon Sep 17 00:00:00 2001 From: HeNine <> Date: Tue, 23 May 2023 19:48:25 +0200 Subject: [PATCH] woo actions! --- .gitea/workflows/publish-container.yaml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/publish-container.yaml b/.gitea/workflows/publish-container.yaml index f2b5896..312ad79 100644 --- a/.gitea/workflows/publish-container.yaml +++ b/.gitea/workflows/publish-container.yaml @@ -10,13 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repository code - uses: https://github.com/actions/checkout@v3 - - - name: Write release version - run: | - KARTSROLLER_VERSION=${GITHUB_REF_NAME#v} - echo Version: $KARTSROLLER_VERSION - echo "KARTSROLLER_VERSION=$KARTSROLLER_VERSION" >> $GITHUB_ENV + uses: https://github.com/actions/checkout@v3 - name: Build site run: npm install && npm run build @@ -34,12 +28,17 @@ jobs: username: henine password: "${{ secrets.PACKAGE_UPLOAD_TOKEN }}" + - name: Docker meta + uses: https://github.com/docker/metadata-action@v4 + with: + images: git.raptorpond.com/${{ github.repository }} + tags: | + type=semver,pattern={{version}} + - name: Build and push uses: https://github.com/docker/build-push-action@v2 with: context: . file: ./Dockerfile push: true - tags: | - git.raptorpond.com/${{ github.repository }}:latest - git.raptorpond.com/${{ github.repository }}:${{ env.KARTSROLLER_VERSION }} + tags: ${{ steps.meta.outputs.tags }}