ci: remove login steps from CI pipeline
This commit is contained in:
@@ -38,17 +38,11 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Download OCCT build artifacts
|
||||||
if: github.event_name != 'pull_request'
|
uses: actions/download-artifact@v4
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
name: occt-build-artifacts
|
||||||
username: ${{ github.actor }}
|
path: build/
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Pull OCCT builder image
|
|
||||||
run: |
|
|
||||||
docker pull ghcr.io/${{ github.repository }}/occt-builder:latest || echo "OCCT image not found, will build from source"
|
|
||||||
|
|
||||||
- name: Make script executable
|
- name: Make script executable
|
||||||
run: chmod +x ./ci/scripts/ffi.sh
|
run: chmod +x ./ci/scripts/ffi.sh
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
name: OCCT CI
|
name: OCCT CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master, dev-occt**]
|
branches: [master, dev-occt**]
|
||||||
@@ -33,22 +34,19 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login 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: Make script executable
|
- name: Make script executable
|
||||||
run: chmod +x ./ci/scripts/occt.sh
|
run: chmod +x ./ci/scripts/occt.sh
|
||||||
|
|
||||||
- name: Build OCCT and run tests
|
- name: Build OCCT and run tests
|
||||||
run: ./ci/scripts/occt.sh --unit-testing
|
run: ./ci/scripts/occt.sh --unit-testing
|
||||||
|
|
||||||
- name: Tag and push OCCT image
|
- name: Upload build artifacts
|
||||||
if: github.event_name != 'pull_request'
|
if: always()
|
||||||
run: |
|
uses: actions/upload-artifact@v4
|
||||||
docker tag occt-builder:latest ghcr.io/${{ github.repository }}/occt-builder:latest
|
with:
|
||||||
docker push ghcr.io/${{ github.repository }}/occt-builder:latest
|
name: occt-build-artifacts
|
||||||
|
path: |
|
||||||
|
build/
|
||||||
|
**/*.so
|
||||||
|
**/*.a
|
||||||
|
retention-days: 7
|
||||||
|
|||||||
Reference in New Issue
Block a user