Skip to content

Commit

Permalink
Better.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Apr 4, 2024
1 parent 571c1c3 commit 98d36bf
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,17 @@ jobs:

- name: Make tag
run: |
[ "${GITHUB_EVENT_NAME}" == 'pull_request' ] && echo "tag=${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV || true
[ "${GITHUB_EVENT_NAME}" == 'push' ] && echo "tag=latest" >> $GITHUB_ENV || true
[ "${GITHUB_EVENT_NAME}" == 'pull_request' ] && echo "MINI_LAB_VM_IMAGE=${GITHUB_HEAD_REF##*/}" >> $GITHUB_ENV || true
[ "${GITHUB_EVENT_NAME}" == 'push' ] && echo "MINI_LAB_VM_IMAGE=latest" >> $GITHUB_ENV || true
- name: Build Docker image
run: |
make build-vms-image
docker push ghcr.io/metal-stack/mini-lab-vms:${tag}
docker ${MINI_LAB_VM_IMAGE}
- name: Run integration tests
shell: bash
run: |
export MINI_LAB_VM_IMAGE=ghcr.io/metal-stack/mini-lab-vms:${tag}
./test/ci-cleanup.sh
./test/integration.sh
env:
Expand Down

0 comments on commit 98d36bf

Please sign in to comment.