1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- name: Release 3X-UI for Docker
- on:
- push:
- tags:
- - "*"
- workflow_dispatch:
- jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/[email protected]
- with:
- submodules: true
- - name: Docker meta
- id: meta
- uses: docker/metadata-action@v5
- with:
- images: |
- ghcr.io/mhsanaei/3x-ui
- tags: |
- type=ref,event=branch
- type=ref,event=tag
- type=pep440,pattern={{version}}
- - name: Set up QEMU
- uses: docker/[email protected]
- - name: Set up Docker Buildx
- uses: docker/[email protected]
- - name: Login to GHCR
- uses: docker/[email protected]
- with:
- registry: ghcr.io
- username: ${{ github.repository_owner }}
- password: ${{ secrets.GITHUB_TOKEN }}
- - name: Build and push
- uses: docker/[email protected]
- with:
- context: .
- push: true
- platforms: linux/amd64,linux/arm64/v8,linux/arm/v7,linux/arm/v6,linux/386
- tags: ${{ steps.meta.outputs.tags }}
- labels: ${{ steps.meta.outputs.labels }}
|