Skip to content

Commit

Permalink
Merge pull request #3550 from DataDog/tonycthsu/temp-disable-publishi…
Browse files Browse the repository at this point in the history
…ng-lib-injection-artifacts

Temp disable publishing lib injection artifacts
  • Loading branch information
TonyCTHsu authored Mar 21, 2024
2 parents 438a180 + 5ca4f96 commit c9c3acf
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 68 deletions.
61 changes: 30 additions & 31 deletions .github/workflows/release-lib-injection.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
# name: "Release Library Injection"
# on:
# push:
# tags:
# - 'v*.*.*'

name: "Release Library Injection"
on:
push:
tags:
- 'v*.*.*'

jobs:
build-and-publish-release-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set version
id: version
run: echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: Get version
run: echo "The selected version is ${{ steps.version.outputs.version }}"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker
run: docker login -u publisher -p ${{ secrets.GITHUB_TOKEN }} ghcr.io
- name: Docker Build
uses: docker/build-push-action@v3
with:
push: true
tags: ghcr.io/datadog/dd-trace-rb/dd-lib-ruby-init:${{ steps.version.outputs.version }}
platforms: 'linux/amd64,linux/arm64/v8'
build-args: DATADOG_RUBY_GEM_VERSION=${{ steps.version.outputs.version }}
context: ./lib-injection
# jobs:
# build-and-publish-release-image:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Set version
# id: version
# run: echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
# - name: Get version
# run: echo "The selected version is ${{ steps.version.outputs.version }}"
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# - name: Set up Docker Buildx
# id: buildx
# uses: docker/setup-buildx-action@v2
# - name: Login to Docker
# run: docker login -u publisher -p ${{ secrets.GITHUB_TOKEN }} ghcr.io
# - name: Docker Build
# uses: docker/build-push-action@v3
# with:
# push: true
# tags: ghcr.io/datadog/dd-trace-rb/dd-lib-ruby-init:${{ steps.version.outputs.version }}
# platforms: 'linux/amd64,linux/arm64/v8'
# build-args: DATADOG_RUBY_GEM_VERSION=${{ steps.version.outputs.version }}
# context: ./lib-injection

74 changes: 37 additions & 37 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,40 +192,40 @@ deploy_to_reliability_env:
UPSTREAM_PROJECT_NAME: $CI_PROJECT_NAME
UPSTREAM_COMMIT_SHA: $CI_COMMIT_SHA

deploy_to_docker_registries:
stage: deploy
rules:
- if: "$POPULATE_CACHE"
when: never
- if: "$CI_COMMIT_TAG =~ /^v.*/"
when: delayed
start_in: 1 day
- when: manual
allow_failure: true
trigger:
project: DataDog/public-images
branch: main
strategy: depend
variables:
IMG_SOURCES: ghcr.io/datadog/dd-trace-rb/dd-lib-ruby-init:$CI_COMMIT_TAG
IMG_DESTINATIONS: dd-lib-ruby-init:$CI_COMMIT_TAG
IMG_SIGNING: "false"

deploy_latest_tag_to_docker_registries:
stage: deploy
rules:
- if: "$POPULATE_CACHE"
when: never
- if: "$CI_COMMIT_TAG =~ /^v.*/"
when: delayed
start_in: 1 day
- when: manual
allow_failure: true
trigger:
project: DataDog/public-images
branch: main
strategy: depend
variables:
IMG_SOURCES: ghcr.io/datadog/dd-trace-rb/dd-lib-ruby-init:$CI_COMMIT_TAG
IMG_DESTINATIONS: dd-lib-ruby-init:latest
IMG_SIGNING: "false"
# deploy_to_docker_registries:
# stage: deploy
# rules:
# - if: "$POPULATE_CACHE"
# when: never
# - if: "$CI_COMMIT_TAG =~ /^v.*/"
# when: delayed
# start_in: 1 day
# - when: manual
# allow_failure: true
# trigger:
# project: DataDog/public-images
# branch: main
# strategy: depend
# variables:
# IMG_SOURCES: ghcr.io/datadog/dd-trace-rb/dd-lib-ruby-init:$CI_COMMIT_TAG
# IMG_DESTINATIONS: dd-lib-ruby-init:$CI_COMMIT_TAG
# IMG_SIGNING: "false"

# deploy_latest_tag_to_docker_registries:
# stage: deploy
# rules:
# - if: "$POPULATE_CACHE"
# when: never
# - if: "$CI_COMMIT_TAG =~ /^v.*/"
# when: delayed
# start_in: 1 day
# - when: manual
# allow_failure: true
# trigger:
# project: DataDog/public-images
# branch: main
# strategy: depend
# variables:
# IMG_SOURCES: ghcr.io/datadog/dd-trace-rb/dd-lib-ruby-init:$CI_COMMIT_TAG
# IMG_DESTINATIONS: dd-lib-ruby-init:latest
# IMG_SIGNING: "false"

0 comments on commit c9c3acf

Please sign in to comment.