You've already forked docker-compose-docker
Compare commits
2 Commits
53a42cb7cc
...
64c4f623fe
| Author | SHA1 | Date | |
|---|---|---|---|
|
64c4f623fe
|
|||
|
2f08126ac7
|
@@ -52,13 +52,19 @@ jobs:
|
|||||||
git push origin "${defined_tag}"
|
git push origin "${defined_tag}"
|
||||||
|
|
||||||
- name: Trigger "Push tagged images" workflow
|
- name: Trigger "Push tagged images" workflow
|
||||||
if: steps.check_change.outputs.changed == 'true'
|
uses: actions/github-script@v8.0.0
|
||||||
uses: peter-evans/repository-dispatch@v4.0.0
|
|
||||||
with:
|
with:
|
||||||
client-payload: |
|
script: |
|
||||||
{
|
const workflowFileName = 'release.yaml';
|
||||||
"tag": "${{ steps.bump.outputs.defined_tag }}"
|
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"
|
||||||
}
|
}
|
||||||
event-type: push-tagged-images
|
});
|
||||||
repository: ${{ github.repository }}
|
|
||||||
token: ${{ github.token }}
|
|
||||||
@@ -4,8 +4,12 @@ on:
|
|||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "**"
|
- "**"
|
||||||
repository_dispatch:
|
workflow_dispatch:
|
||||||
types: [ push-tagged-images ]
|
inputs:
|
||||||
|
tag:
|
||||||
|
description: "Tag which should be released"
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
push-arm64:
|
push-arm64:
|
||||||
@@ -14,7 +18,7 @@ jobs:
|
|||||||
- id: version_extraction
|
- id: version_extraction
|
||||||
name: Extract git tag
|
name: Extract git tag
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ github.event.client_payload.tag || github.ref_name }}"
|
VERSION="${{ inputs.tag || github.ref_name }}"
|
||||||
VERSION="${VERSION#refs/*/}"
|
VERSION="${VERSION#refs/*/}"
|
||||||
echo "Version: ${VERSION}"
|
echo "Version: ${VERSION}"
|
||||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||||
@@ -52,7 +56,7 @@ jobs:
|
|||||||
- id: version_extraction
|
- id: version_extraction
|
||||||
name: Extract git tag
|
name: Extract git tag
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ github.event.client_payload.tag || github.ref_name }}"
|
VERSION="${{ inputs.tag || github.ref_name }}"
|
||||||
VERSION="${VERSION#refs/*/}"
|
VERSION="${VERSION#refs/*/}"
|
||||||
echo "Version: ${VERSION}"
|
echo "Version: ${VERSION}"
|
||||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||||
@@ -93,7 +97,7 @@ jobs:
|
|||||||
- id: version_extraction
|
- id: version_extraction
|
||||||
name: Extract git tag
|
name: Extract git tag
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ github.event.client_payload.tag || github.ref_name }}"
|
VERSION="${{ inputs.tag || github.ref_name }}"
|
||||||
VERSION="${VERSION#refs/*/}"
|
VERSION="${VERSION#refs/*/}"
|
||||||
echo "Version: ${VERSION}"
|
echo "Version: ${VERSION}"
|
||||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||||
@@ -120,7 +124,7 @@ jobs:
|
|||||||
- id: version_extraction
|
- id: version_extraction
|
||||||
name: Extract git tag
|
name: Extract git tag
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ github.event.client_payload.tag || github.ref_name }}"
|
VERSION="${{ inputs.tag || github.ref_name }}"
|
||||||
VERSION="${VERSION#refs/*/}"
|
VERSION="${VERSION#refs/*/}"
|
||||||
echo "Version: ${VERSION}"
|
echo "Version: ${VERSION}"
|
||||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
Reference in New Issue
Block a user