Skip to content

Commit

Permalink
Merge pull request #20 from pspdev/only-main-and-dispatch
Browse files Browse the repository at this point in the history
Only run on main push and dispatch
  • Loading branch information
diamant3 authored Jun 10, 2024
2 parents 33d9ce9 + 9bf7e8c commit ff4b31f
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- main
tags:
- v*
repository_dispatch:
types: [run_build]

Expand All @@ -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

Expand All @@ -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: |
Expand All @@ -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 }}"}'

0 comments on commit ff4b31f

Please sign in to comment.