Skip to content

Commit

Permalink
Refactor workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Feb 21, 2023
1 parent eba7706 commit 17ec104
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 49 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/build-and-publish-image.yml

This file was deleted.

26 changes: 18 additions & 8 deletions .github/workflows/lib-injection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,21 @@ on:

jobs:
build-and-publish-test-image:
uses: ./.github/workflows/build-and-publish-image.yml
with:
tags: 'ghcr.io/datadog/dd-trace-rb/dd-lib-ruby-init:${{ github.sha }}'
platforms: 'linux/amd64,linux/arm64/v8'
build-args: 'DDTRACE_RUBY_SHA=${{ github.sha }}'
context: ./lib-injection
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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:${{ github.sha }}
platforms: 'linux/amd64,linux/arm64/v8'
build-args: DDTRACE_RUBY_SHA=${{ github.sha }}
context: ./lib-injection

0 comments on commit 17ec104

Please sign in to comment.