Parcourir la source

ci: Combine actions to be triggered 'on release'

* Trigger static asset building & updating release assets
* Trigger Docker release build
version-14
Gavin D'souza il y a 2 ans
Parent
révision
1e40b32ebf
2 fichiers modifiés avec 18 ajouts et 22 suppressions
  1. +0
    -20
      .github/workflows/docker-release.yml
  2. +18
    -2
      .github/workflows/on_release.yml

+ 0
- 20
.github/workflows/docker-release.yml Voir le fichier

@@ -1,20 +0,0 @@
name: 'Trigger Docker build on release'
on:
release:
types: [released]
permissions:
contents: read

jobs:
curl:
permissions:
contents: none
name: 'Trigger Docker build on release'
runs-on: ubuntu-latest
container:
image: alpine:latest
steps:
- name: curl
run: |
apk add curl bash
curl -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: Bearer ${{ secrets.CI_PAT }}" https://api.github.com/repos/frappe/frappe_docker/actions/workflows/build_stable.yml/dispatches -d '{"ref":"main"}'

.github/workflows/publish-assets-releases.yml → .github/workflows/on_release.yml Voir le fichier

@@ -1,8 +1,11 @@
name: 'Frappe Assets'
name: 'Release'

on:
release:
types: [ created ]
types: [released]

permissions:
contents: read

env:
GITHUB_TOKEN: ${{ github.token }}
@@ -47,3 +50,16 @@ jobs:
asset_path: build/assets.tar.gz
asset_name: assets.tar.gz
asset_content_type: application/octet-stream

docker-release:
name: 'Trigger Docker build on release'
runs-on: ubuntu-latest
permissions:
contents: none
container:
image: alpine:latest
steps:
- name: curl
run: |
apk add curl bash
curl -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: Bearer ${{ secrets.CI_PAT }}" https://api.github.com/repos/frappe/frappe_docker/actions/workflows/build_stable.yml/dispatches -d '{"ref":"main"}'

Chargement…
Annuler
Enregistrer