mirror of
https://github.com/pyrohost/pyrodactyl.git
synced 2026-04-06 04:01:58 +02:00
fixed workflow run triggers
This commit is contained in:
10
.github/workflows/build-and-release.yaml
vendored
10
.github/workflows/build-and-release.yaml
vendored
@@ -3,7 +3,7 @@ name: Docker Build and Release Workflow
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
- main
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
@@ -11,7 +11,7 @@ on:
|
||||
jobs:
|
||||
build-dev:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/dev' && !contains(github.event.head_commit.message, 'Update version to')
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'Update version to')
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
@@ -31,7 +31,10 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ghcr.io/${{ github.repository }}:canary
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository }}:canary
|
||||
ghcr.io/${{ github.repository }}:dev
|
||||
|
||||
platforms: linux/amd64
|
||||
|
||||
build-release:
|
||||
@@ -59,6 +62,7 @@ jobs:
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }}
|
||||
ghcr.io/${{ github.repository }}:latest
|
||||
ghcr.io/${{ github.repository }}:main
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
||||
update-version:
|
||||
|
||||
Reference in New Issue
Block a user