From e76583a7b1da8b8e5891eda6abce8326fe532246 Mon Sep 17 00:00:00 2001 From: yokawasa Date: Fri, 24 Dec 2021 17:20:45 +0900 Subject: [PATCH 1/2] fix with dummy code for testing --- .github/workflows/ci.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d303a3c..d3d3706 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,7 @@ on: pull_request: branches: - main + - add-release-ci paths-ignore: - '**.md' - '.gitignore' @@ -57,7 +58,7 @@ jobs: release: name: Build Push Release - if: startsWith( github.ref, 'refs/tags/' ) + #if: startsWith( github.ref, 'refs/tags/' ) runs-on: ubuntu-latest needs: test steps: @@ -69,8 +70,6 @@ jobs: with: go-version: '1.16' - - run: go version - - name: Login to GitHub Container Registry uses: docker/login-action@v1 with: @@ -80,7 +79,8 @@ jobs: - name: Get the version id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} + run: echo ::set-output name=VERSION::0.0.1-alpha.3 + #run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 @@ -89,15 +89,14 @@ jobs: env: VERSION: ${{ steps.get_version.outputs.VERSION }} run: | - make manifests-release + IMAGE_ID=$REGISTRY/$IMAGE_NAME + make manifests-release IMG=$IMAGE_ID:$VERSION - name: Publish images to the registry env: VERSION: ${{ steps.get_version.outputs.VERSION }} run: | IMAGE_ID=$REGISTRY/$IMAGE_NAME - # Convert uppercase to lowercase - IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') echo IMAGE_ID=$IMAGE_ID echo VERSION=$VERSION make docker-push IMG=$IMAGE_ID:$VERSION From e7eff572c88c363eaf852686495ae67556a2e48c Mon Sep 17 00:00:00 2001 From: yokawasa Date: Fri, 24 Dec 2021 17:43:19 +0900 Subject: [PATCH 2/2] remove test trigger and code --- .github/workflows/ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d3d3706..06474b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,6 @@ on: pull_request: branches: - main - - add-release-ci paths-ignore: - '**.md' - '.gitignore' @@ -58,7 +57,7 @@ jobs: release: name: Build Push Release - #if: startsWith( github.ref, 'refs/tags/' ) + if: startsWith( github.ref, 'refs/tags/' ) runs-on: ubuntu-latest needs: test steps: @@ -79,8 +78,7 @@ jobs: - name: Get the version id: get_version - run: echo ::set-output name=VERSION::0.0.1-alpha.3 - #run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} + run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1