2024-01-20 12:32:35 +03:00
|
|
|
name: Release 3X-UI for Docker
|
2023-05-07 19:59:37 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "*"
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_and_push:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out the code
|
2023-10-18 13:01:05 +03:00
|
|
|
uses: actions/checkout@v4.1.1
|
2023-05-07 19:59:37 +03:00
|
|
|
- name: Set up QEMU
|
2023-09-12 21:13:47 +03:00
|
|
|
uses: docker/setup-qemu-action@v3.0.0
|
2023-05-07 19:59:37 +03:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
2023-09-12 21:13:57 +03:00
|
|
|
uses: docker/setup-buildx-action@v3.0.0
|
2023-05-07 19:59:37 +03:00
|
|
|
|
|
|
|
- name: Log in to GitHub Container Registry
|
2023-09-12 21:13:27 +03:00
|
|
|
uses: docker/login-action@v3.0.0
|
2023-05-07 19:59:37 +03:00
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Docker meta
|
|
|
|
id: meta
|
2024-01-08 12:36:52 +03:00
|
|
|
uses: docker/metadata-action@v5.5.0
|
2023-05-07 19:59:37 +03:00
|
|
|
with:
|
2023-05-07 20:15:30 +03:00
|
|
|
images: ghcr.io/${{ github.repository }}
|
2023-05-07 19:59:37 +03:00
|
|
|
|
|
|
|
- name: Build and push Docker image
|
2023-11-20 02:13:07 +03:00
|
|
|
uses: docker/build-push-action@v5.1.0
|
2023-05-07 19:59:37 +03:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: ${{ github.event_name != 'pull_request' }}
|
2024-01-20 12:32:35 +03:00
|
|
|
platforms: linux/amd64, linux/arm64/v8, linux/arm/v7, linux/arm/v6, linux/386, linux/arm/v5
|
2023-05-08 04:18:25 +03:00
|
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
|
|
labels: ${{ steps.meta.outputs.labels }}
|