Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
pbalogh-sa committed Mar 19, 2022
1 parent 0b60247 commit 1d92a5d
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release PKE
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
- "*"

jobs:
release:
Expand All @@ -29,29 +29,29 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

trigger-image-build:
runs-on: ubuntu-latest
needs: release

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Set ref
id: set-ref
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

- name: Trigger pke-image build
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'banzaicloud',
repo: 'pke-image',
workflow_id: 'packer-build.yml',
ref: 'master',
inputs: {
tag: '${{ steps.set-ref.outputs.tag }}'
}
})
# trigger-image-build:
# runs-on: ubuntu-latest
# needs: release

# steps:
# - name: Check out code
# uses: actions/checkout@v2

# - name: Set ref
# id: set-ref
# run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

# - name: Trigger pke-image build
# uses: actions/github-script@v6
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# script: |
# await github.rest.actions.createWorkflowDispatch({
# owner: 'banzaicloud',
# repo: 'pke-image',
# workflow_id: 'packer-build.yml',
# ref: 'master',
# inputs: {
# tag: '${{ steps.set-ref.outputs.tag }}'
# }
# })

0 comments on commit 1d92a5d

Please sign in to comment.