From 9bf7e8cf26a17254de6975bee7f861d487fed055 Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Sun, 9 Jun 2024 16:47:09 +0200 Subject: [PATCH] Only run on main push and dispatch The ref should also no longer be needed after merging https://github.com/pspdev/psptoolchain/pull/185 --- .github/workflows/docker.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 62c3f10..6fc83f2 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -4,8 +4,6 @@ on: push: branches: - main - tags: - - v* repository_dispatch: types: [run_build] @@ -17,16 +15,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Extract DOCKER_TAG using tag name - if: startsWith(github.ref, 'refs/tags/') - run: | - echo "DOCKER_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV - - - name: Use default DOCKER_TAG - if: startsWith(github.ref, 'refs/tags/') != true - run: | - echo "DOCKER_TAG=latest" >> $GITHUB_ENV - - name: Set up QEMU uses: docker/setup-qemu-action@v2 @@ -43,7 +31,7 @@ jobs: - uses: docker/build-push-action@v4 with: push: true - tags: ghcr.io/${{ github.repository }}:${{ env.DOCKER_TAG }} + tags: ghcr.io/${{ github.repository }}:latest - name: Send Compile action run: | @@ -56,4 +44,3 @@ jobs: repository: ${{ github.repository_owner }}/psptoolchain token: ${{ secrets.DISPATCH_TOKEN }} event-type: ${{ env.NEW_DISPATCH_ACTION }} - client-payload: '{"ref": "${{ github.ref }}"}'