mirror of
https://github.com/datahub-project/datahub.git
synced 2025-06-27 05:03:31 +00:00
fix(gha): fix gha for single tag (#9283)
This commit is contained in:
parent
b51cfc3a40
commit
38adff8693
@ -70,11 +70,20 @@ runs:
|
|||||||
push: false
|
push: false
|
||||||
cache-from: type=registry,ref=${{ steps.docker_meta.outputs.tags }}
|
cache-from: type=registry,ref=${{ steps.docker_meta.outputs.tags }}
|
||||||
cache-to: type=inline
|
cache-to: type=inline
|
||||||
|
- name: Single Tag
|
||||||
|
if: ${{ inputs.publish != 'true' }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
TAGS="""
|
||||||
|
${{ steps.docker_meta.outputs.tags }}
|
||||||
|
"""
|
||||||
|
echo "SINGLE_TAG=$(echo $TAGS | tr '\n' ' ' | awk -F' ' '{ print $1 }')" >> $GITHUB_OUTPUT
|
||||||
|
id: single_tag
|
||||||
- name: Upload image locally for testing (if not publishing)
|
- name: Upload image locally for testing (if not publishing)
|
||||||
uses: ishworkh/docker-image-artifact-upload@v1
|
uses: ishworkh/docker-image-artifact-upload@v1
|
||||||
if: ${{ inputs.publish != 'true' }}
|
if: ${{ inputs.publish != 'true' }}
|
||||||
with:
|
with:
|
||||||
image: ${{ steps.docker_meta.outputs.tags }}
|
image: ${{ steps.single_tag.outputs.SINGLE_TAG }}
|
||||||
|
|
||||||
# Code for building multi-platform images and pushing to Docker Hub.
|
# Code for building multi-platform images and pushing to Docker Hub.
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
|
2
.github/workflows/docker-unified.yml
vendored
2
.github/workflows/docker-unified.yml
vendored
@ -876,11 +876,13 @@ jobs:
|
|||||||
]
|
]
|
||||||
steps:
|
steps:
|
||||||
- uses: aws-actions/configure-aws-credentials@v1
|
- uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
if: ${{ needs.setup.outputs.publish != 'false' }}
|
||||||
with:
|
with:
|
||||||
aws-access-key-id: ${{ secrets.AWS_SQS_ACCESS_KEY_ID }}
|
aws-access-key-id: ${{ secrets.AWS_SQS_ACCESS_KEY_ID }}
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SQS_ACCESS_KEY }}
|
aws-secret-access-key: ${{ secrets.AWS_SQS_ACCESS_KEY }}
|
||||||
aws-region: us-west-2
|
aws-region: us-west-2
|
||||||
- uses: isbang/sqs-action@v0.2.0
|
- uses: isbang/sqs-action@v0.2.0
|
||||||
|
if: ${{ needs.setup.outputs.publish != 'false' }}
|
||||||
with:
|
with:
|
||||||
sqs-url: ${{ secrets.DATAHUB_HEAD_SYNC_QUEUE }}
|
sqs-url: ${{ secrets.DATAHUB_HEAD_SYNC_QUEUE }}
|
||||||
message: '{ "command": "git-sync", "args" : {"repoName": "${{ needs.setup.outputs.repository_name }}", "repoOrg": "${{ github.repository_owner }}", "repoBranch": "${{ needs.setup.outputs.branch_name }}", "repoShaShort": "${{ needs.setup.outputs.short_sha }}" }}'
|
message: '{ "command": "git-sync", "args" : {"repoName": "${{ needs.setup.outputs.repository_name }}", "repoOrg": "${{ github.repository_owner }}", "repoBranch": "${{ needs.setup.outputs.branch_name }}", "repoShaShort": "${{ needs.setup.outputs.short_sha }}" }}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user