3x-ui/.github/workflows/docker.yml
serogaq 314f40a546
Merge remote-tracking branch 'base/main' into v2.5.2
# Conflicts:
#	DockerInit.sh
#	Dockerfile
#	README.md
#	README.ru_RU.md
#	README.zh_CN.md
#	docker-compose.yml
#	go.mod
#	web/assets/js/model/setting.js
#	web/html/xui/xray.html
#	web/service/setting.go
2025-02-18 19:04:31 +01:00

59 lines
No EOL
1.4 KiB
YAML

name: Release 3X-UI for Docker
on:
workflow_dispatch:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
serogaq/3x-ui
ghcr.io/serogaq/3x-ui
tags: |
type=ref,event=branch
type=ref,event=tag
type=pep440,pattern={{version}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
build-args: |
BUILD_WITH_ANTIZAPRET=${{ vars.BUILD_WITH_ANTIZAPRET }}
push: true
platforms: linux/amd64, linux/arm64/v8
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}