Daniel
2 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
6 additions and
24 deletions
-
.github/workflows/release.yml
|
@ -10,32 +10,14 @@ on: |
|
|
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet |
|
|
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet |
|
|
- '[1-2].[0-9]+.[0-9]+' |
|
|
- '[1-2].[0-9]+.[0-9]+' |
|
|
|
|
|
|
|
|
jobs: |
|
|
concurrency: |
|
|
# https://github.com/marketplace/actions/skip-duplicate-actions |
|
|
# Apply concurrency control only on the upstream repo |
|
|
# Some checks to determine if we need to continue with building a new docker. |
|
|
group: ${{ github.repository == 'dani-garcia/vaultwarden' && format('{0}-{1}', github.workflow, github.ref) || github.run_id }} |
|
|
# We will skip this check if we are creating a tag, because that has the same hash as a previous run already. |
|
|
# Don't cancel other runs when creating a tag |
|
|
skip_check: |
|
|
cancel-in-progress: ${{ github.ref_type == 'branch' }} |
|
|
# Only run this in the upstream repo and not on forks |
|
|
|
|
|
if: ${{ github.repository == 'dani-garcia/vaultwarden' }} |
|
|
|
|
|
name: Cancel older jobs when running |
|
|
|
|
|
permissions: |
|
|
|
|
|
actions: write |
|
|
|
|
|
runs-on: ubuntu-24.04 |
|
|
|
|
|
outputs: |
|
|
|
|
|
should_skip: ${{ steps.skip_check.outputs.should_skip }} |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
|
- name: Skip Duplicates Actions |
|
|
|
|
|
id: skip_check |
|
|
|
|
|
uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5.3.1 |
|
|
|
|
|
with: |
|
|
|
|
|
cancel_others: 'true' |
|
|
|
|
|
# Only run this when not creating a tag |
|
|
|
|
|
if: ${{ github.ref_type == 'branch' }} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
docker-build: |
|
|
docker-build: |
|
|
needs: skip_check |
|
|
|
|
|
if: ${{ needs.skip_check.outputs.should_skip != 'true' && github.repository == 'dani-garcia/vaultwarden' }} |
|
|
|
|
|
name: Build Vaultwarden containers |
|
|
name: Build Vaultwarden containers |
|
|
permissions: |
|
|
permissions: |
|
|
packages: write |
|
|
packages: write |
|
|