You've already forked docker-compose-docker
fix(ci): enable auto-release workflow
This commit is contained in:
@@ -52,13 +52,19 @@ jobs:
|
||||
git push origin "${defined_tag}"
|
||||
|
||||
- name: Trigger "Push tagged images" workflow
|
||||
if: steps.check_change.outputs.changed == 'true'
|
||||
uses: peter-evans/repository-dispatch@v4.0.0
|
||||
uses: actions/github-script@v8.0.0
|
||||
with:
|
||||
client-payload: |
|
||||
{
|
||||
"tag": "${{ steps.bump.outputs.defined_tag }}"
|
||||
}
|
||||
event-type: push-tagged-images
|
||||
repository: ${{ github.repository }}
|
||||
token: ${{ github.token }}
|
||||
script: |
|
||||
const workflowFileName = 'release.yaml';
|
||||
const defaultBranch = context.payload.repository.default_branch;
|
||||
const definedTag = '${{ steps.create_tag.outputs.defined_tag }}';
|
||||
|
||||
await github.rest.actions.createWorkflowDispatch({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
workflow_id: workflowFileName,
|
||||
ref: defaultBranch,
|
||||
inputs: {
|
||||
tag: "definedTag"
|
||||
}
|
||||
});
|
||||
@@ -4,8 +4,12 @@ on:
|
||||
push:
|
||||
tags:
|
||||
- "**"
|
||||
repository_dispatch:
|
||||
types: [ push-tagged-images ]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: "Tag which should be released"
|
||||
type: string
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
push-arm64:
|
||||
@@ -14,7 +18,7 @@ jobs:
|
||||
- id: version_extraction
|
||||
name: Extract git tag
|
||||
run: |
|
||||
VERSION="${{ github.event.client_payload.tag || github.ref_name }}"
|
||||
VERSION="${{ inputs.tag || github.ref_name }}"
|
||||
VERSION="${VERSION#refs/*/}"
|
||||
echo "Version: ${VERSION}"
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
@@ -52,7 +56,7 @@ jobs:
|
||||
- id: version_extraction
|
||||
name: Extract git tag
|
||||
run: |
|
||||
VERSION="${{ github.event.client_payload.tag || github.ref_name }}"
|
||||
VERSION="${{ inputs.tag || github.ref_name }}"
|
||||
VERSION="${VERSION#refs/*/}"
|
||||
echo "Version: ${VERSION}"
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
@@ -93,7 +97,7 @@ jobs:
|
||||
- id: version_extraction
|
||||
name: Extract git tag
|
||||
run: |
|
||||
VERSION="${{ github.event.client_payload.tag || github.ref_name }}"
|
||||
VERSION="${{ inputs.tag || github.ref_name }}"
|
||||
VERSION="${VERSION#refs/*/}"
|
||||
echo "Version: ${VERSION}"
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
@@ -120,7 +124,7 @@ jobs:
|
||||
- id: version_extraction
|
||||
name: Extract git tag
|
||||
run: |
|
||||
VERSION="${{ github.event.client_payload.tag || github.ref_name }}"
|
||||
VERSION="${{ inputs.tag || github.ref_name }}"
|
||||
VERSION="${VERSION#refs/*/}"
|
||||
echo "Version: ${VERSION}"
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
|
||||
Reference in New Issue
Block a user