3x-ui/.github/workflows/docker.yml

41 lines
1.0 KiB
YAML
Raw Normal View History

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
2024-02-25 22:01:01 +03:00
uses: actions/checkout@v4
2023-05-07 19:59:37 +03:00
- name: Set up QEMU
2024-02-25 22:01:01 +03:00
uses: docker/setup-qemu-action@v3
2023-05-07 19:59:37 +03:00
- name: Set up Docker Buildx
2024-02-25 22:01:01 +03:00
uses: docker/setup-buildx-action@v3
2023-05-07 19:59:37 +03:00
2024-01-27 12:26:10 +03:00
- name: Login to GHCR
2024-02-25 22:01:01 +03:00
uses: docker/login-action@v3
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-02-25 22:01:01 +03:00
uses: docker/metadata-action@v5
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
uses: docker/build-push-action@v6
2023-05-07 19:59:37 +03:00
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64, linux/arm64/v8, linux/arm/v7, linux/arm/v6, linux/386
2023-05-08 04:18:25 +03:00
tags: ${{ steps.meta.outputs.tags }}
2024-01-27 12:26:10 +03:00
labels: ${{ steps.meta.outputs.labels }}