mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-18 13:12:17 +01:00
ci: make it work for forks too
This commit is contained in:
4
.github/actions/build-test-push/action.yml
vendored
4
.github/actions/build-test-push/action.yml
vendored
@@ -48,6 +48,7 @@ runs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
- name: Log in to Docker Hub
|
||||||
|
if: inputs.docker_hub_username != ''
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ inputs.docker_hub_username }}
|
username: ${{ inputs.docker_hub_username }}
|
||||||
@@ -64,7 +65,7 @@ runs:
|
|||||||
--dry-run "${{ inputs.dry_run }}"
|
--dry-run "${{ inputs.dry_run }}"
|
||||||
|
|
||||||
- name: Run integration tests
|
- name: Run integration tests
|
||||||
if: ${{ inputs.skip_integrations_tests != 'true' }}
|
if: inputs.skip_integrations_tests != 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
.github/actions/build-test-push/test.sh \
|
.github/actions/build-test-push/test.sh \
|
||||||
@@ -74,6 +75,7 @@ runs:
|
|||||||
--dry-run "${{ inputs.dry_run }}"
|
--dry-run "${{ inputs.dry_run }}"
|
||||||
|
|
||||||
- name: Push
|
- name: Push
|
||||||
|
if: inputs.docker_hub_username != ''
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
.github/actions/build-test-push/push.sh \
|
.github/actions/build-test-push/push.sh \
|
||||||
|
|||||||
19
.github/workflows/continuous-integration.yml
vendored
19
.github/workflows/continuous-integration.yml
vendored
@@ -161,12 +161,29 @@ jobs:
|
|||||||
platform: linux/arm/v7
|
platform: linux/arm/v7
|
||||||
alternate_repository: snapshot
|
alternate_repository: snapshot
|
||||||
|
|
||||||
merge_clean_snapshot_tags:
|
merge_clean_snapshot_guard:
|
||||||
needs:
|
needs:
|
||||||
- snapshot_amd64
|
- snapshot_amd64
|
||||||
- snapshot_386
|
- snapshot_386
|
||||||
- snapshot_arm64
|
- snapshot_arm64
|
||||||
- snapshot_arm_v7
|
- snapshot_arm_v7
|
||||||
|
name: Secrets access check
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
continue: ${{ steps.check.outputs.continue }}
|
||||||
|
steps:
|
||||||
|
- name: Check
|
||||||
|
id: check
|
||||||
|
run: |
|
||||||
|
if [ -n "${{ secrets.DOCKERHUB_USERNAME }}" ]; then
|
||||||
|
echo "continue=true" >> "$GITHUB_OUTPUT"
|
||||||
|
else
|
||||||
|
echo "continue=false" >> "$GITHUB_OUTPUT"
|
||||||
|
fi
|
||||||
|
|
||||||
|
merge_clean_snapshot_tags:
|
||||||
|
if: needs.merge_clean_snapshot_guard.outputs.continue == 'true'
|
||||||
|
needs: merge_clean_snapshot_guard
|
||||||
name: Merge and clean snapshot tags
|
name: Merge and clean snapshot tags
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
1
.github/workflows/pull-request-cleanup.yml
vendored
1
.github/workflows/pull-request-cleanup.yml
vendored
@@ -11,6 +11,7 @@ jobs:
|
|||||||
cleanup:
|
cleanup:
|
||||||
name: Cleanup Docker images
|
name: Cleanup Docker images
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user