Run CI for pull requests
This commit is contained in:
11
.github/workflows/workflow.yml
vendored
11
.github/workflows/workflow.yml
vendored
@@ -1,12 +1,12 @@
|
|||||||
name: CI (main and tags)
|
name: CI
|
||||||
on:
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main" ]
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
tags: [ "v*" ]
|
tags: [ "v*" ]
|
||||||
permissions:
|
permissions:
|
||||||
checks: write
|
contents: read
|
||||||
contents: write
|
|
||||||
packages: write
|
|
||||||
pull-requests: read
|
pull-requests: read
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
@@ -24,6 +24,7 @@ jobs:
|
|||||||
- run: cargo clippy
|
- run: cargo clippy
|
||||||
|
|
||||||
docker-clean-metadata:
|
docker-clean-metadata:
|
||||||
|
if: github.event_name == 'push'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
json: ${{ steps.meta.outputs.json }}
|
json: ${{ steps.meta.outputs.json }}
|
||||||
@@ -39,6 +40,7 @@ jobs:
|
|||||||
type=semver,pattern={{raw}}
|
type=semver,pattern={{raw}}
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
|
if: github.event_name == 'push'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
@@ -84,6 +86,7 @@ jobs:
|
|||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
docker-manifest:
|
docker-manifest:
|
||||||
|
if: github.event_name == 'push'
|
||||||
needs:
|
needs:
|
||||||
- docker-build
|
- docker-build
|
||||||
- docker-clean-metadata
|
- docker-clean-metadata
|
||||||
|
|||||||
Reference in New Issue
Block a user