Dynamic variable docker test

This commit is contained in:
aunefyren 2023-12-21 10:33:08 +01:00
parent 773347225e
commit 4ccb843f79
2 changed files with 3 additions and 1 deletions

View file

@ -40,6 +40,8 @@ jobs:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GIT_HUB_TOKEN }} password: ${{ secrets.GIT_HUB_TOKEN }}
- name: Replace version variable
run: sed -i 's/{{RELEASE_TAG}}/beta-${{github.event.push_id}}/g' files/config.go # Replace release variable with the name of this release
- name: Build and push - name: Build and push
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
with: with:

View file

@ -11,7 +11,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
const wrapperr_version_parameter = "v3.2.3" const wrapperr_version_parameter = "{{RELEASE_TAG}}"
const minSecretKeySize = 32 const minSecretKeySize = 32
var config_path, _ = filepath.Abs("./config/config.json") var config_path, _ = filepath.Abs("./config/config.json")