From 1700e85d06c979f96a161c29284c37c85f3e0113 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Wed, 15 Feb 2023 23:43:13 +0100 Subject: [PATCH] Update docker.yml --- .github/workflows/docker.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index ea35b745..f7e06761 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,18 +1,12 @@ name: Docker Image CI on: push: - branches: [ master ] + tags: + - "*" workflow_dispatch: - inputs: - project: - description: 'Project' - required: true - default: 'x-ui' jobs: - build: - runs-on: ubuntu-latest steps: @@ -24,10 +18,13 @@ jobs: id: meta uses: docker/metadata-action@v4 with: - # list of Docker images to use as base name for tags images: | alireza7/x-ui ghcr.io/alireza0/x-ui + tags: | + type=ref,event=branch + type=ref,event=tag + type=pep440,pattern={{version}} - name: Set up QEMU uses: docker/setup-qemu-action@v1 @@ -53,6 +50,6 @@ jobs: with: context: . push: true - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm64/v8 tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }}