chore: sync workflows from base-template
This commit is contained in:
11
.github/workflows/publish.yml
vendored
11
.github/workflows/publish.yml
vendored
@@ -44,6 +44,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.stack_env }}
|
ref: ${{ github.event.inputs.stack_env }}
|
||||||
|
|
||||||
|
- name: Checkout scripts from main
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: main
|
||||||
|
path: .ci
|
||||||
|
sparse-checkout: .github/workflows/script
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
@@ -79,7 +86,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Notify success
|
- name: Notify success
|
||||||
if: success()
|
if: success()
|
||||||
run: bash ./.github/workflows/script/notify.sh
|
run: bash ./.ci/.github/workflows/script/notify.sh
|
||||||
env:
|
env:
|
||||||
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
|
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
||||||
@@ -89,7 +96,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Notify failure
|
- name: Notify failure
|
||||||
if: failure()
|
if: failure()
|
||||||
run: bash ./.github/workflows/script/notify.sh
|
run: bash ./.ci/.github/workflows/script/notify.sh
|
||||||
env:
|
env:
|
||||||
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
|
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
||||||
|
|||||||
5
.github/workflows/re-pull.yml
vendored
5
.github/workflows/re-pull.yml
vendored
@@ -25,8 +25,11 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout scripts from main
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: main
|
||||||
|
sparse-checkout: .github/workflows/script
|
||||||
|
|
||||||
- name: Deploy ke Portainer
|
- name: Deploy ke Portainer
|
||||||
run: bash ./.github/workflows/script/re-pull.sh
|
run: bash ./.github/workflows/script/re-pull.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user