Skip to content

Commit

Permalink
Update image-template.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tmknight authored Jan 20, 2024
1 parent eef4d1d commit 4c3582d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/image-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,14 @@ jobs:
- name: "Get version"
id: "set-buildargs"
env:
DISTRO: ${{ github.event.inputs.distro }}
RELEASE: ${{ github.event.inputs.release }}
ALPINE_VER: ${{ vars.ALPINE_VER }}
UBUNTU_VER: ${{ vars.UBUNTU_VER }}
shell: "bash"
run: |
DISTRO_VERSION=$([ "${DISTRO}" == alpine ] && echo "ALPINE_VER=${ALPINE_VER}" || echo "UBUNTU_VER=${UBUNTU_VER}");
PRIVOXY_VER=$([ "${RELEASE}" == stable ] && echo 3.0.34 || echo 3.0.35);
echo BUILD_ARGS=(${DISTRO_VERSION} ${PRIVOXY_VER}) >> $GITHUB_OUTPUT
echo BUILD_ARGS=$(
[ "${DISTRO}" == alpine ] && echo "ALPINE_VER=${ALPINE_VER}" || echo "UBUNTU_VER=${UBUNTU_VER}");
[ "${RELEASE}" == stable ] && echo 3.0.34 || echo 3.0.35);
) >> $GITHUB_OUTPUT
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4c3582d

Please sign in to comment.