Skip to content

Commit 53ebcdb

Browse files
uncleDecarteriknordmark
authored andcommitted
GitHub Actions: use correct tag in assets.yml
We pass github.ref which have format refs/tags/%tag%. We can use this format to download GitHub repository and checkout to specific branch, however this format is not applicable to docker pull and rest of the steps. Therefore we set up TAG environment variable in %tag% format which is used in all steps after checking out and is derived from git tag. Signed-off-by: Pavel Abramov <[email protected]>
1 parent b768f6b commit 53ebcdb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/assets.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
run: |
5656
HV=kvm
5757
if [ "${{ github.event.repository.full_name }}" = "lf-edge/eve" ]; then
58-
EVE=lfedge/eve:${{ inputs.tag_ref }}-${HV}-${{ env.ARCH }}
58+
EVE=lfedge/eve:${TAG}-${HV}-${{ env.ARCH }}
5959
docker pull "$EVE"
6060
else
6161
make pkgs
@@ -66,7 +66,7 @@ jobs:
6666
docker run "$EVE" installer_net | tar -C assets -xvf -
6767
- name: Create direct iPXE config
6868
run: |
69-
URL="${{ github.event.repository.html_url }}/releases/download/${{ inputs.tag_ref }}/${{ env.ARCH }}."
69+
URL="${{ github.event.repository.html_url }}/releases/download/${TAG}/${{ env.ARCH }}."
7070
sed -i. -e '/# set url https:/s#^.*$#set url '"$URL"'#' assets/ipxe.efi.cfg
7171
for comp in initrd rootfs installer; do
7272
sed -i. -e "s#initrd=${comp}#initrd=${{ env.ARCH }}.${comp}#g" assets/ipxe.efi.cfg
@@ -84,7 +84,7 @@ jobs:
8484
- name: Pull eve-sources and publish collected_sources.tar.gz to assets
8585
run: |
8686
HV=kvm
87-
EVE_SOURCES=lfedge/eve-sources:${{ inputs.tag_ref }}-${HV}-${{ env.ARCH }}
87+
EVE_SOURCES=lfedge/eve-sources:${TAG}-${HV}-${{ env.ARCH }}
8888
docker pull "$EVE_SOURCES"
8989
docker create --name eve_sources "$EVE_SOURCES" bash
9090
docker export --output assets/collected_sources.tar.gz eve_sources
@@ -96,7 +96,7 @@ jobs:
9696
result-encoding: string
9797
script: |
9898
console.log(context)
99-
tag = '${{ inputs.tag_ref }}'
99+
tag = '${TAG}'
100100
101101
// first create a release -- it is OK if that fails,
102102
// since it means the release is already there

0 commit comments

Comments
 (0)