1.9.0-alpha.12 #107
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Docker Images | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Setup QEMU for Docker Buildx | |
uses: docker/setup-qemu-action@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker metadata | |
id: metadata | |
uses: docker/metadata-action@v5 | |
with: | |
images: ghcr.io/sagernet/sing-box | |
- name: Build and release Docker images | |
uses: docker/build-push-action@v5 | |
with: | |
platforms: linux/386,linux/amd64,linux/arm64,linux/s390x | |
target: dist | |
build-args: | | |
BUILDKIT_CONTEXT_KEEP_GIT_DIR=1 | |
tags: | | |
ghcr.io/sagernet/sing-box:latest | |
ghcr.io/sagernet/sing-box:${{ github.ref_name }} | |
push: true |