Skip to content

Commit

Permalink
fix(gha): Add workflow tag debugging step and fix tag (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker authored Dec 19, 2024
1 parent 8b1d327 commit c0fc442
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/datahub-actions-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
# The tracking tag will be "head", "v1.2.3", or "pr1234".
# The unique tag will be a short SHA.
unique_tag: ${{ steps.tag.outputs.unique_tag }}
tracking_tag: ${{ steps.tag.outputs.tag }}
tracking_tag: ${{ steps.tag.outputs.tracking_tag }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -41,8 +41,10 @@ jobs:
TRACKING_TAG=$(echo ${GITHUB_REF} | sed -e "s,refs/heads/main,head,g" -e 's,refs/tags/,,g' -e 's,refs/pull/\([0-9]*\).*,pr\1,g')
echo "TRACKING_TAG: $TRACKING_TAG"
echo "unique_tag=$UNIQUE_TAG" >> "$GITHUB_OUTPUT"
echo "tracking_tag=$TRACKING_TAG" >> "$GITHUB_OUTPUT"
{
echo "unique_tag=${UNIQUE_TAG}"
echo "tracking_tag=${TRACKING_TAG}"
} >> $GITHUB_OUTPUT
- name: Check whether publishing enabled
id: publish
env:
Expand All @@ -64,6 +66,11 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Setup Outputs
run: |
echo "GITHUB_REF: $GITHUB_REF"
echo "unique_tag=${{ needs.setup.outputs.unique_tag }}"
echo "tracking_tag=${{ needs.setup.outputs.tracking_tag }}"
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v5
Expand Down Expand Up @@ -101,6 +108,11 @@ jobs:
steps:
- name: Check out the repo (slim)
uses: actions/checkout@v3
- name: Setup Outputs
run: |
echo "GITHUB_REF: $GITHUB_REF"
echo "unique_tag=${{ needs.setup.outputs.unique_tag }}"
echo "tracking_tag=${{ needs.setup.outputs.tracking_tag }}"
- name: Docker meta (slim)
id: docker_meta_slim
uses: docker/metadata-action@v5
Expand Down

0 comments on commit c0fc442

Please sign in to comment.