Skip to content

Commit

Permalink
feat(ci): Switch to a unique commit
Browse files Browse the repository at this point in the history
  • Loading branch information
PerfectSlayer committed Jan 15, 2025
1 parent 2d211f8 commit 92863cc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/update-docker-build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,16 @@ jobs:
echo "tag=${TAG}" >> "$GITHUB_OUTPUT"
echo "::notice::Using Docker build image tag: ${TAG}"
- name: Update the Docker build image in CircleCI config
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
sed -i 's|DOCKER_IMAGE_VERSION=.*|DOCKER_IMAGE_VERSION="${{ steps.define-tag.outputs.tag }}"|' .circleci/render_config.py
ghcommit --repository ${{ github.repository }} --branch ${{ steps.define-branch.outputs.branch }} --add .circleci/render_config.py --message "feat(ci): Update Docker build image"
- 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
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
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
ghcommit --repository ${{ github.repository }} --branch ${{ steps.define-branch.outputs.branch }} --add .gitlab-ci.yml --message "feat(ci): Update Docker build image"
ghcommit --repository ${{ github.repository }} --branch ${{ steps.define-branch.outputs.branch }} --add .circleci/render_config.py --add .gitlab-ci.yml --message "feat(ci): Update Docker build image"
- name: Create pull request
env:
GH_TOKEN: ${{ github.token }}
Expand Down

0 comments on commit 92863cc

Please sign in to comment.