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}}