fix: the image tag might be wrong when it is not a pr

Signed-off-by: Rick <LinuxSuRen@users.noreply.github.com>
pull/4903/head
rick 2023-11-23 10:12:29 +00:00 committed by Zhao Xiaojie
parent e97f3135e9
commit 6bde0c8848
2 changed files with 5 additions and 2 deletions

View File

@ -83,10 +83,12 @@ jobs:
console-ref: false
load: true
platforms: ""
- name: test
- name: E2E Testing
if: github.event_name == 'pull_request'
run: |
sudo curl -L https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
sudo chmod u+x /usr/local/bin/docker-compose
docker tag ghcr.io/halo-dev/halo-dev:pr-${{ github.event.number }} ghcr.io/halo-dev/halo-dev:dev
repo=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')
docker tag ghcr.io/${repo}/halo-dev:pr-${{ github.event.number }} ghcr.io/halo-dev/halo-dev:dev
cd e2e && ./start.sh

1
.gitignore vendored
View File

@ -64,6 +64,7 @@ nbdist/
### VSCode
.vscode
.gitpod.yml
### Local file
application-local.yml