Skip to content

Add Stun server Dockerfile and config (#2) #3

Add Stun server Dockerfile and config (#2)

Add Stun server Dockerfile and config (#2) #3

Workflow file for this run

name: Build and push Stun server Docker image on release
on:
release:
types:
- published
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.repository == 'home-assistant/stun' }}
steps:
- name: Checkout code
uses: actions/checkout@v4.1.7
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.6.1
- name: Login to GitHub Container Registry
uses: docker/login-action@v3.3.0
if: ${{ github.event_name == 'release' }}
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6.7.0
with:
context: .
platforms: linux/amd64
push: ${{ github.event_name == 'release' }}
tags: ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name || github.sha }}