mirror of
https://github.com/dangeroustech/ZeroTierBridge.git
synced 2025-12-06 00:56:58 +00:00
Merge pull request #24 from dangeroustech/biodrone/issue22
ci: add permissions to actions file
This commit is contained in:
33
.github/workflows/docker-build.yml
vendored
33
.github/workflows/docker-build.yml
vendored
@@ -1,23 +1,38 @@
|
|||||||
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:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
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
|
||||||
@@ -46,7 +61,6 @@ jobs:
|
|||||||
VERSION=${{ matrix.version }}
|
VERSION=${{ matrix.version }}
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/${{ matrix.arch }}
|
platforms: linux/${{ matrix.arch }}
|
||||||
# tags: registry.dangerous.tech/dangeroustech/zerotierbridge:latest
|
|
||||||
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true
|
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true
|
||||||
|
|
||||||
- name: Export Digests
|
- name: Export Digests
|
||||||
@@ -64,7 +78,8 @@ jobs:
|
|||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
MergeRefs:
|
MergeRefs:
|
||||||
name: "Do The Horrible Merge Thing"
|
name: Do The Horrible Merge Thing
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- Docker_Build
|
- Docker_Build
|
||||||
@@ -137,9 +152,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