Skip to content

Commit

Permalink
Merge pull request #206 from Luzilla/helm-chart
Browse files Browse the repository at this point in the history
helm chart
  • Loading branch information
till authored Mar 29, 2024
2 parents 0cfaac0 + 22d3e3c commit acac25f
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 24 deletions.
68 changes: 45 additions & 23 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,54 @@
---
name: release

on:
push:
tags:
- 'v*'
- 'v*'

jobs:
goreleaser:
unbound:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/luzilla/unbound
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{raw}}
- uses: docker/build-push-action@v5
with:
context: .docker/unbound/rootfs
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

dnsblexporter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 9 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,23 @@ on:

jobs:
build_unbound:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v5
with:
context: .docker/unbound/rootfs
push: false
push: true
tags: ghcr.io/luzilla/unbound:dev

test:
Expand Down

0 comments on commit acac25f

Please sign in to comment.