From c43cdf879ad0556dbdac1098e4f0dd7bf0c17d34 Mon Sep 17 00:00:00 2001 From: Dominik Louven Date: Tue, 10 Aug 2021 14:48:37 +0200 Subject: [PATCH] More workflow debugging --- .github/workflows/main.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c425aab..8a46c39 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,8 @@ name: CI on: push: - branches: ['feature/ci'] + tags: + - 'v*' env: REGISTRY: ghcr.io @@ -21,14 +22,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Set env - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - - name: Test - run: | - echo $RELEASE_VERSION - echo ${{ env.RELEASE_VERSION }} - - name: Log in to the Container registry uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 with: @@ -42,6 +35,12 @@ jobs: with: images: ghcr.io/${{ env.IMAGE_NAME }} + - name: Test + run: | + echo ${{ github.event.release.tag_name }} + echo ${{ github.ref }} + echo ${{ env.IMAGE_NAME }} + - name: Build and push Docker image uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc with: