From 84b0d5923d087807f5bb3ec8bd78f5622c5e2df8 Mon Sep 17 00:00:00 2001 From: Dex Date: Mon, 6 May 2024 18:19:33 -0400 Subject: [PATCH] Test new version method. --- .gitea/workflows/merge-master-tag-deploy.yaml | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/merge-master-tag-deploy.yaml b/.gitea/workflows/merge-master-tag-deploy.yaml index 87eb9ed..91b32f0 100644 --- a/.gitea/workflows/merge-master-tag-deploy.yaml +++ b/.gitea/workflows/merge-master-tag-deploy.yaml @@ -13,15 +13,18 @@ jobs: - name: Check out repository code uses: actions/checkout@v4 - - name: Docker meta - id: meta - uses: docker/metadata-action@v5 + - uses: actions/github-script@v7 + id: set-result with: - images: | - Dex/kx3dex_radio - tags: | - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} + script: | + var fs = require("fs") + var content = fs.readFileSync("package.json", { encoding: 'utf8', flag: 'r' }) + var pkg = JSON.parse(content) + return pkg.version + result-encoding: string + + - name: Get result + run: echo "gitea.simplysyncedllc.com/dex/kx3dex_radio:${{steps.set-result.outputs.result}}" - name: Install QEMU run: apt-get update && apt-get install -y qemu-user-static @@ -77,4 +80,6 @@ jobs: platforms: | linux/arm64 push: true - tags: ${{ steps.meta.outputs.tags }} + tags: | + gitea.simplysyncedllc.com/dex/kx3dex_radio:latest + gitea.simplysyncedllc.com/dex/kx3dex_radio:${{steps.set-result.outputs.result}}