mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 10:49:15 +00:00
This change does some cleanup of the actions workflows to makes them faster to run and easier to debug. It pins all of the actions workflows to specific commit hashes. Dependabot will be enabled in a separate PR to manage updates. Signed-off-by: Philip Laine <philip.laine@gmail.com>
48 lines
1.6 KiB
YAML
48 lines
1.6 KiB
YAML
name: release
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
branches:
|
|
- main
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
id-token: write
|
|
steps:
|
|
- name: Docker meta
|
|
id: meta
|
|
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf #v6.0.0
|
|
with:
|
|
images: |
|
|
netbirdio/kubernetes-operator
|
|
tags: |
|
|
type=ref,event=pr
|
|
type=ref,event=branch
|
|
type=semver,pattern={{version}}
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 #v4.0.0
|
|
with:
|
|
username: ${{ secrets.DOCKER_USER }}
|
|
password: ${{ secrets.DOCKER_TOKEN }}
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a #v4.0.0
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd #v4.0.0
|
|
- name: Build and push
|
|
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 #v7.0.0
|
|
with:
|
|
platforms: linux/amd64,linux/arm64
|
|
push: true
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: |
|
|
"org.opencontainers.image.created={{.Date}}"
|
|
"org.opencontainers.image.title={{.ProjectName}}"
|
|
"org.opencontainers.image.version={{.Version}}"
|
|
"org.opencontainers.image.revision={{.FullCommit}}"
|
|
"org.opencontainers.image.version={{.Version}}"
|
|
"maintainer=dev@netbird.io"
|