From 678049e7209704307e92d4b3e6fc0919f6e325c6 Mon Sep 17 00:00:00 2001 From: junjiequan Date: Mon, 22 Apr 2024 17:39:47 +0200 Subject: [PATCH] feat: hello!!!! --- .github/workflows/github-tag-and-release.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/github-tag-and-release.yml b/.github/workflows/github-tag-and-release.yml index 50b43bf..f0abb27 100644 --- a/.github/workflows/github-tag-and-release.yml +++ b/.github/workflows/github-tag-and-release.yml @@ -54,15 +54,13 @@ jobs: - name: Install Node.js dependencies run: npm ci - # - name: Create image tags - # id: meta - # uses: docker/metadata-action@v5 - # with: - # images: ghcr.io/junjiequan/github-action-test - # flavor: latest=true - # tags: | - # type=raw,value=stable - # type=ref,event=tag + - name: Docker meta + id: meta + uses: docker/metadata-action@v4 + with: + images: name/app + tags: | + type=raw,value={{date 'YYYYMM'}} - name: Generate Date Tag id: date_tag @@ -75,5 +73,5 @@ jobs: push: true tags: | ghcr.io/junjiequan/github-action-test:stable - ghcr.io/junjiequan/github-action-test:${{ steps.date_tag.outputs.NOW }} + ghcr.io/junjiequan/github-action-test:r_${{ steps.meta.outputs.tags }} ghcr.io/junjiequan/github-action-test:${{ steps.tag_version.outputs.new_tag }}