From 7d3f4c805bb46bc0df5e5177c3b8ef436e750ae6 Mon Sep 17 00:00:00 2001 From: GilbN <24592972+GilbN@users.noreply.github.com> Date: Sun, 20 Mar 2022 20:29:34 +0100 Subject: [PATCH 1/2] fixes --- .github/workflows/docker-build.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index d99e7640..b745d7ba 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -3,9 +3,6 @@ on: release: types: - published - branches: - - live - - live_develop jobs: push_to_ghcr_io: runs-on: ubuntu-latest @@ -14,9 +11,10 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 + ref: ${{ github.event.release.target_commitish }} - name: Get the version id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} + run: echo ::set-output name=VERSION::${{ github.event.release.tag_name }} - name: Set current date as env variable id: date_time run: echo ::set-output name=NOW::$(date +'%Y-%m-%dT%H:%M:%S') @@ -27,12 +25,12 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GH_PAT }} - name: build&push live - if: ${{ github.ref == 'refs/heads/live' }} + if: ${{ github.event.release.target_commitish == 'live' }} run: | docker build docker/ --build-arg TP_RELEASE=${{ steps.get_version.outputs.VERSION }} --build-arg BUILD_DATE=${{ steps.date_time.outputs.NOW }} --tag ghcr.io/gilbn/theme.park --tag ghcr.io/gilbn/theme.park:${{ steps.get_version.outputs.VERSION }} docker push ghcr.io/gilbn/theme.park - name: build&push dev - if: ${{ github.ref == 'refs/heads/live_develop' }} + if: ${{ github.event.release.target_commitish == 'live_develop' }} run: | docker build docker/ --build-arg TP_RELEASE=${{ steps.get_version.outputs.VERSION }} --build-arg BUILD_DATE=${{ steps.date_time.outputs.NOW }} --tag ghcr.io/gilbn/theme.park:develop --tag ghcr.io/gilbn/theme.park:${{ steps.get_version.outputs.VERSION }} docker push --all-tags ghcr.io/gilbn/theme.park @@ -45,7 +43,7 @@ jobs: fetch-depth: 0 - name: Get the version id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} + run: echo ::set-output name=VERSION::${{ github.event.release.tag_name }} - name: Set current date as env variable id: date_time run: echo ::set-output name=NOW::$(date +'%Y-%m-%dT%H:%M:%S') @@ -55,12 +53,13 @@ jobs: username: ${{ secrets.DH_USER }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: build&push dh live - if: ${{ github.ref == 'refs/heads/live' }} + if: ${{ github.event.release.target_commitish == 'live' }} run: | docker build docker/ --build-arg TP_RELEASE=${{ steps.get_version.outputs.VERSION }} --build-arg BUILD_DATE=${{ steps.date_time.outputs.NOW }} --tag ghcr.io/gilbn/theme.park --tag ghcr.io/gilbn/theme.park:${{ steps.get_version.outputs.VERSION }} docker push ghcr.io/gilbn/theme.park - name: build&push dh dev - if: ${{ github.ref == 'refs/heads/live_develop' }} + if: ${{ github.event.release.target_commitish == 'live_develop' }} run: | docker build docker/ --build-arg TP_RELEASE=${{ steps.get_version.outputs.VERSION }} --build-arg BUILD_DATE=${{ steps.date_time.outputs.NOW }} --tag gilbn/theme.park:develop --tag gilbn/theme.park:${{ steps.get_version.outputs.VERSION }} docker push --all-tags gilbn/theme.park + From 0f9e1acbd227f83823d518f181ec6267cf09e058 Mon Sep 17 00:00:00 2001 From: GilbN <24592972+GilbN@users.noreply.github.com> Date: Sun, 20 Mar 2022 21:04:19 +0100 Subject: [PATCH 2/2] exclude_assets: '' --- .github/workflows/minify-and-deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/minify-and-deploy.yml b/.github/workflows/minify-and-deploy.yml index 73b00498..dd06a613 100644 --- a/.github/workflows/minify-and-deploy.yml +++ b/.github/workflows/minify-and-deploy.yml @@ -58,6 +58,7 @@ jobs: publish_dir: ./ publish_branch: live github_token: ${{ secrets.GITHUB_TOKEN }} + exclude_assets: '' - name: Deploy Develop uses: peaceiris/actions-gh-pages@v3 if: ${{ github.ref == 'refs/heads/develop' }} @@ -65,3 +66,4 @@ jobs: publish_dir: ./ publish_branch: live_develop github_token: ${{ secrets.GITHUB_TOKEN }} + exclude_assets: ''