Skip to content

Commit

Permalink
fix(ci): Fix image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
PerfectSlayer committed Jan 16, 2025
1 parent 148aef9 commit cec1030
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update-docker-build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
tag:
description: 'The tag to use for the Docker build image'
required: true
default: 'vYY.MM-base'
default: 'vYY.MM'

jobs:
update-docker-build-image:
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
08|09|10) TAG_DATE="${CURRENT_YEAR}.07" ;;
11|12) TAG_DATE="${CURRENT_YEAR}.10" ;;
esac
TAG="v${TAG_DATE}-base"
TAG="v${TAG_DATE}"
fi
echo "tag=${TAG}" >> "$GITHUB_OUTPUT"
echo "::notice::Using Docker build image tag: ${TAG}"
Expand All @@ -55,7 +55,7 @@ jobs:
sed -i 's|DOCKER_IMAGE_VERSION=.*|DOCKER_IMAGE_VERSION="${{ steps.define-tag.outputs.tag }}"|' .circleci/render_config.py
- name: Update the Docker build image in GitLab CI config
run: |
sed -i 's|image: ghcr.io/datadog/dd-trace-java-docker-build:.*|image: ghcr.io/datadog/dd-trace-java-docker-build:${{ steps.define-tag.outputs.tag }}|' .gitlab-ci.yml
sed -i 's|image: ghcr.io/datadog/dd-trace-java-docker-build:.*|image: ghcr.io/datadog/dd-trace-java-docker-build:${{ steps.define-tag.outputs.tag }}-base|' .gitlab-ci.yml
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand Down

0 comments on commit cec1030

Please sign in to comment.