Test new version method.
Build KX3DEX.radio / Build and Deploy (push) Failing after 30m43s Details

master
Dex 2024-05-06 18:19:33 -04:00
parent 6e12955241
commit 84b0d5923d
1 changed files with 14 additions and 9 deletions

View File

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