mirror of
https://github.com/dangeroustech/ZeroTierBridge.git
synced 2025-12-06 00:56:58 +00:00
ci: add permissions to actions file
This commit is contained in:
29
.github/workflows/docker-build.yml
vendored
29
.github/workflows/docker-build.yml
vendored
@@ -1,23 +1,36 @@
|
|||||||
name: Publish Docker Image
|
name: Publish Docker Image
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
checks: read
|
||||||
|
contents: read
|
||||||
|
deployments: read
|
||||||
|
issues: read
|
||||||
|
discussions: read
|
||||||
|
packages: read
|
||||||
|
pages: read
|
||||||
|
pull-requests: read
|
||||||
|
repository-projects: read
|
||||||
|
security-events: read
|
||||||
|
statuses: read
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "main"
|
- main
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY_IMAGE: registry.dangerous.tech/dangeroustech/zerotierbridge
|
REGISTRY_IMAGE: registry.dangerous.tech/dangeroustech/zerotierbridge
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Docker_Build:
|
Docker_Build:
|
||||||
name: "Docker Build And Release"
|
name: Docker Build And Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
arch: ["amd64", "arm64"]
|
arch: [amd64, arm64]
|
||||||
version: ["1.12.2"]
|
version: [1.12.2]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -64,7 +77,7 @@ jobs:
|
|||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
MergeRefs:
|
MergeRefs:
|
||||||
name: "Do The Horrible Merge Thing"
|
name: Do The Horrible Merge Thing
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- Docker_Build
|
- Docker_Build
|
||||||
@@ -137,9 +150,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
git-message: "chore 🤖: Release {version}"
|
git-message: "chore 🤖: Release {version}"
|
||||||
output-file: "CHANGELOG.md"
|
output-file: CHANGELOG.md
|
||||||
tag-prefix: "v"
|
tag-prefix: v
|
||||||
fallback-version: "1.0.0"
|
fallback-version: 1.0.0
|
||||||
release-count: 0 # preserve all versions in changelog
|
release-count: 0 # preserve all versions in changelog
|
||||||
skip-on-empty: false # otherwise we don't publish fixes
|
skip-on-empty: false # otherwise we don't publish fixes
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user