Skip to content

Merge pull request #39 from element-hq/dependabot/docker/tailscale/ta… #124

Merge pull request #39 from element-hq/dependabot/docker/tailscale/ta…

Merge pull request #39 from element-hq/dependabot/docker/tailscale/ta… #124

name: Tailscale K8S Image
on:
push:
branches: [ main, testing ]
tags: ["v*.*.*"]
pull_request:
branches: [ main, testing ]
env:
REGISTRY: ghcr.io/element-hq
BASE_TAG: ${{ github.ref_name }}
IMAGE_NAME: tailscale-k8s
jobs:
build-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: 'arm64,arm'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}