ci: fix action error with pulling OCCT image
This commit is contained in:
@@ -63,8 +63,8 @@ jobs:
|
||||
- name: Tag and push OCCT image
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
docker tag occt-builder:latest ghcr.io/${{ github.repository }}/occt-builder:latest
|
||||
docker push ghcr.io/${{ github.repository }}/occt-builder:latest
|
||||
docker tag occt-build:latest ghcr.io/${{ github.repository }}/occt-build:latest
|
||||
docker push ghcr.io/${{ github.repository }}/occt-build:latest
|
||||
|
||||
build-ffi:
|
||||
name: FFI
|
||||
@@ -79,16 +79,16 @@ jobs:
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to GitHub Container Registry
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Pull OCCT image or build locally
|
||||
- name: Pull and tag OCCT image
|
||||
run: |
|
||||
docker pull ghcr.io/${{ github.repository }}/occt-builder:latest || ./ci/scripts/occt.sh --build-only
|
||||
docker pull ghcr.io/${{ github.repository }}/occt-build:latest
|
||||
docker tag ghcr.io/${{ github.repository }}/occt-build:latest occt-build:latest
|
||||
|
||||
- name: Make scripts executable
|
||||
run: chmod +x ./ci/scripts/ffi.sh
|
||||
@@ -99,5 +99,5 @@ jobs:
|
||||
- name: Tag and push FFI image
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
docker tag ffi-builder:latest ghcr.io/${{ github.repository }}/ffi-builder:latest
|
||||
docker push ghcr.io/${{ github.repository }}/ffi-builder:latest
|
||||
docker tag ffi-build:latest ghcr.io/${{ github.repository }}/ffi-build:latest
|
||||
docker push ghcr.io/${{ github.repository }}/ffi-build:latest
|
||||
|
||||
Reference in New Issue
Block a user