You've already forked docker-compose-docker
Compare commits
1 Commits
a5fd97a0e2
...
487fafb56d
| Author | SHA1 | Date | |
|---|---|---|---|
|
487fafb56d
|
@@ -52,19 +52,13 @@ jobs:
|
|||||||
git push origin "${defined_tag}"
|
git push origin "${defined_tag}"
|
||||||
|
|
||||||
- name: Trigger "Push tagged images" workflow
|
- name: Trigger "Push tagged images" workflow
|
||||||
uses: actions/github-script@v8.0.0
|
if: steps.check_change.outputs.changed == 'true'
|
||||||
|
uses: peter-evans/repository-dispatch@v4.0.0
|
||||||
with:
|
with:
|
||||||
script: |
|
client-payload: |
|
||||||
const workflowFileName = 'release.yaml';
|
{
|
||||||
const defaultBranch = context.payload.repository.default_branch;
|
"tag": "${{ steps.bump.outputs.defined_tag }}"
|
||||||
const definedTag = '${{ steps.create_tag.outputs.defined_tag }}';
|
}
|
||||||
|
event-type: push-tagged-images
|
||||||
await github.rest.actions.createWorkflowDispatch({
|
repository: ${{ github.repository }}
|
||||||
owner: context.repo.owner,
|
token: ${{ github.token }}
|
||||||
repo: context.repo.repo,
|
|
||||||
workflow_id: workflowFileName,
|
|
||||||
ref: defaultBranch,
|
|
||||||
inputs: {
|
|
||||||
tag: "definedTag"
|
|
||||||
}
|
|
||||||
});
|
|
||||||
@@ -4,12 +4,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "**"
|
- "**"
|
||||||
workflow_dispatch:
|
repository_dispatch:
|
||||||
inputs:
|
types: [ push-tagged-images ]
|
||||||
tag:
|
|
||||||
description: "Tag which should be released"
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
push-arm64:
|
push-arm64:
|
||||||
@@ -18,7 +14,7 @@ jobs:
|
|||||||
- id: version_extraction
|
- id: version_extraction
|
||||||
name: Extract git tag
|
name: Extract git tag
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ inputs.tag || github.ref_name }}"
|
VERSION="${{ github.event.client_payload.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
|
||||||
@@ -56,7 +52,7 @@ jobs:
|
|||||||
- id: version_extraction
|
- id: version_extraction
|
||||||
name: Extract git tag
|
name: Extract git tag
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ inputs.tag || github.ref_name }}"
|
VERSION="${{ github.event.client_payload.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
|
||||||
@@ -97,7 +93,7 @@ jobs:
|
|||||||
- id: version_extraction
|
- id: version_extraction
|
||||||
name: Extract git tag
|
name: Extract git tag
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ inputs.tag || github.ref_name }}"
|
VERSION="${{ github.event.client_payload.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
|
||||||
@@ -124,7 +120,7 @@ jobs:
|
|||||||
- id: version_extraction
|
- id: version_extraction
|
||||||
name: Extract git tag
|
name: Extract git tag
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ inputs.tag || github.ref_name }}"
|
VERSION="${{ github.event.client_payload.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