Skip to content

Commit

Permalink
Set build folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jriguera committed Aug 28, 2024
1 parent fc21f89 commit 9a8bb8e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: "otelcol-${{ needs.compile.outputs.version }}_linux_amd64"
path: otelcol-dev
path: build

- name: Get metadata for Docker image
id: meta
Expand All @@ -102,14 +102,14 @@ jobs:
- name: Test
run: |
ls -l otelcol-dev
ls -l build
- name: Build and export to Docker
uses: docker/build-push-action@v6
with:
context: ${{ env.DOCKER_BUILD_DIR }}
build-args: |
"OTEL_BIN=otelcol-dev/${{ needs.compile.outputs.build-name }}"
"OTEL_BIN=build/${{ needs.compile.outputs.build-name }}"
load: true
tags: otelcol

Expand All @@ -132,7 +132,7 @@ jobs:
context: ${{ env.DOCKER_BUILD_DIR }}
push: ${{ github.event_name != 'pull_request' }}
build-args: |
"OTEL_BIN=${{ steps.artifact.outputs.download-path }}/${{ needs.compile.outputs.build-name }}"
"OTEL_BIN=build/${{ needs.compile.outputs.build-name }}"
tags: |
${{ steps.meta.outputs.tags }}
${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_NAME }}:${{ needs.compile.outputs.version }}
Expand All @@ -158,7 +158,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: "otelcol-${{ needs.compile.outputs.version }}_linux_amd64"
path: otelcol-dev
path: build

- name: Get list of artifacts
run: |
Expand Down

0 comments on commit 9a8bb8e

Please sign in to comment.