Skip to content

Commit

Permalink
Single condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Apr 18, 2024
1 parent d744396 commit cca16a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ jobs:

- name: Make tag
run: |
[ "${GITHUB_EVENT_NAME}" == 'pull_request' ] && export "IMAGE_TAG=${GITHUB_HEAD_REF##*/}" || true
[ "${GITHUB_EVENT_NAME}" == 'push' ] && export "IMAGE_TAG=latest" || true
IMAGE_TAG=$([ "${GITHUB_EVENT_NAME}" == 'pull_request' ] && echo ${GITHUB_HEAD_REF##*/} || echo "latest")
echo "MINI_LAB_VM_IMAGE=ghcr.io/metal-stack/mini-lab-vms:${IMAGE_TAG}" >> $GITHUB_ENV
echo "MINI_LAB_SONIC_IMAGE=ghcr.io/metal-stack/mini-lab-sonic:${IMAGE_TAG}" >> $GITHUB_ENV
Expand Down

0 comments on commit cca16a1

Please sign in to comment.