Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gha): Add workflow tag debugging step and fix tag #140

Merged
merged 3 commits into from
Dec 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the problem, introduced when renamed to tacking_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
Loading