Merge pull request #4903 from LinuxSuRen/fix/wrong-image-tag

fix: the image tag might be wrong when it is not a pr
pull/4909/head
John Niang 2023-11-24 10:42:51 +08:00 committed by GitHub
commit 2800ba46c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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