Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jj22ee committed Nov 30, 2024
1 parent 001583a commit 90c920f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release-ocb-components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
path: opentelemetry-collector-contrib
ref: aws-ocb-dev
- name: get hash
working-directory: opentelemetry-collector-contrib
working-directory: .
run: |
RELEASE_HASH=$(git rev-parse HEAD)
echo RELEASE_HASH="$RELEASE_HASH" >> $GITHUB_ENV
Expand All @@ -41,10 +40,9 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to private AWS ECR
if: ${{ inputs.push_image == true || inputs.push_image == 'true' }}
uses: docker/login-action@v3
with:
registry: ${{ inputs.image_registry }}
registry: ${{ secrets.ECR_REGISTRY }}
env:
AWS_REGION: us-east-1

Expand All @@ -61,8 +59,8 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
context: ./opentelemetry-collector-contrib/.github/workflows/ocb-utils/
file: ./opentelemetry-collector-contrib/.github/workflows/ocb-utils/Dockerfile
context: ./ocb-utils/
file: ./Dockerfile
platforms: linux/amd64
tags: ${{ secrets.ECR_REPO }}:${{ env.RELEASE_HASH }}
load: false
Expand Down

0 comments on commit 90c920f

Please sign in to comment.