mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-04 09:08:30 +00:00
Do not push container on tag
We only really want to do this with the pspdev repo. Otherwise it makes no sense to do releases.
This commit is contained in:
20
.github/workflows/docker.yml
vendored
20
.github/workflows/docker.yml
vendored
@@ -4,8 +4,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
tags:
|
|
||||||
- v*
|
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [run_build]
|
types: [run_build]
|
||||||
|
|
||||||
@@ -17,16 +15,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- 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
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
@@ -43,9 +31,9 @@ jobs:
|
|||||||
- uses: docker/build-push-action@v5
|
- uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: ghcr.io/${{ github.repository }}:${{ env.DOCKER_TAG }}
|
tags: ghcr.io/${{ github.repository }}:latest
|
||||||
build-args: |
|
build-args: |
|
||||||
BASE_DOCKER_IMAGE=ghcr.io/${{ github.repository_owner }}/psptoolchain:${{ env.DOCKER_TAG }}
|
BASE_DOCKER_IMAGE=ghcr.io/${{ github.repository_owner }}/psptoolchain:latest
|
||||||
|
|
||||||
- name: Send Compile action
|
- name: Send Compile action
|
||||||
run: |
|
run: |
|
||||||
@@ -58,7 +46,7 @@ jobs:
|
|||||||
repository: ${{ github.repository_owner }}/psp-packages
|
repository: ${{ github.repository_owner }}/psp-packages
|
||||||
token: ${{ secrets.DISPATCH_TOKEN }}
|
token: ${{ secrets.DISPATCH_TOKEN }}
|
||||||
event-type: ${{ env.NEW_DISPATCH_ACTION }}
|
event-type: ${{ env.NEW_DISPATCH_ACTION }}
|
||||||
client-payload: '{"ref": "${{ github.ref }}"}'
|
client-payload: '{"ref": "refs/heads/master"}'
|
||||||
|
|
||||||
- name: Repository Dispatch to psplinkusb
|
- name: Repository Dispatch to psplinkusb
|
||||||
uses: peter-evans/repository-dispatch@v2
|
uses: peter-evans/repository-dispatch@v2
|
||||||
@@ -66,4 +54,4 @@ jobs:
|
|||||||
repository: ${{ github.repository_owner }}/psplinkusb
|
repository: ${{ github.repository_owner }}/psplinkusb
|
||||||
token: ${{ secrets.DISPATCH_TOKEN }}
|
token: ${{ secrets.DISPATCH_TOKEN }}
|
||||||
event-type: ${{ env.NEW_DISPATCH_ACTION }}
|
event-type: ${{ env.NEW_DISPATCH_ACTION }}
|
||||||
client-payload: '{"ref": "${{ github.ref }}"}'
|
client-payload: '{"ref": "refs/heads/master"}'
|
||||||
|
Reference in New Issue
Block a user