From dfb5ba18d48f3fb989823fea785d503fc7311e74 Mon Sep 17 00:00:00 2001 From: yoshino-s Date: Tue, 27 May 2025 07:49:10 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/patch.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yoshino-s --- .gitea/workflows/patch.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/patch.yml b/.gitea/workflows/patch.yml index 6ce90d4..8bb489c 100644 --- a/.gitea/workflows/patch.yml +++ b/.gitea/workflows/patch.yml @@ -12,7 +12,7 @@ on: # Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds. env: REGISTRY: git.yoshino-s.xyz - IMAGE_NAME: ${{ github.repository }}/mock-server + IMAGE_NAME: ${{ github.repository }} # There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. jobs: @@ -30,12 +30,6 @@ jobs: registry: ${{ env.REGISTRY }} username: ${{ gitea.repository_owner }} password: ${{ secrets.PACKAGES_PASSWORD }} - # This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels. - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - name: Replace tag run: | sed -i "s/latest/${{ gitea.event.inputs.tag }}/g" Dockerfile @@ -49,5 +43,4 @@ jobs: context: . file: Dockerfile push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.event.inputs.tag }} \ No newline at end of file