Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): use correct artifact path #1716

Merged
merged 3 commits into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Publish release'
name: "Publish release"

run-name: >
${{ format('Publish Release for Workflow: {0}', inputs.workflow_id) }}
Expand Down Expand Up @@ -112,22 +112,30 @@ jobs:
- name: Download platform otelcol-sumo artifacts from workflow
uses: actions/download-artifact@v4
with:
pattern: otelcol-sumo-*-${{ matrix.arch_os }}
pattern: otelcol-sumo-${{ matrix.arch_os }}
path: artifacts/
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ inputs.workflow_id }}

- name: Download platform fips otelcol-sumo artifacts from workflow
uses: actions/download-artifact@v4
with:
pattern: otelcol-sumo-fips-${{ matrix.arch_os }}
path: artifacts/
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ inputs.workflow_id }}

- name: Build and push FIPS image to Open Source ECR
run: |
cp artifacts/otelcol-sumo-fips-${{matrix.arch_os}} otelcol-sumo
cp artifacts/otelcol-sumo-fips-${{matrix.arch_os}}/otelcol-sumo-fips-${{matrix.arch_os}} otelcol-sumo
make build-push-container-multiplatform \
BUILD_TAG=${{ needs.get-version.outputs.version }} \
PLATFORM=${{ matrix.arch_os }} \
BUILD_TYPE_SUFFIX="-fips"

- name: Build and push FIPS image to DockerHub
run: |
cp artifacts/otelcol-sumo-fips-${{matrix.arch_os}} otelcol-sumo
cp artifacts/otelcol-sumo-fips-${{matrix.arch_os}}/otelcol-sumo-fips-${{matrix.arch_os}} otelcol-sumo
make build-push-container-multiplatform \
BUILD_TAG=${{ needs.get-version.outputs.version }} \
PLATFORM=${{ matrix.arch_os }} \
Expand All @@ -136,15 +144,15 @@ jobs:

- name: Build and push UBI-based FIPS image to Open Source ECR
run: |
cp artifacts/otelcol-sumo-fips-${{matrix.arch_os}} otelcol-sumo
cp artifacts/otelcol-sumo-fips-${{matrix.arch_os}}/otelcol-sumo-fips-${{matrix.arch_os}} otelcol-sumo
make build-push-container-ubi \
BUILD_TAG=${{ needs.get-version.outputs.version }} \
PLATFORM=${{ matrix.arch_os }} \
BUILD_TYPE_SUFFIX="-ubi-fips"

- name: Build and push UBI-based FIPS image to DockerHub
run: |
cp artifacts/otelcol-sumo-fips-${{matrix.arch_os}} otelcol-sumo
cp artifacts/otelcol-sumo-fips-${{matrix.arch_os}}/otelcol-sumo-fips-${{matrix.arch_os}} otelcol-sumo
make build-push-container-ubi \
BUILD_TAG=${{ needs.get-version.outputs.version }} \
PLATFORM=${{ matrix.arch_os }} \
Expand All @@ -153,30 +161,30 @@ jobs:

- name: Build and push image to Open Source ECR
run: |
cp artifacts/otelcol-sumo-${{matrix.arch_os}} otelcol-sumo
cp artifacts/otelcol-sumo-${{matrix.arch_os}}/otelcol-sumo-${{matrix.arch_os}} otelcol-sumo
make build-push-container-multiplatform \
BUILD_TAG=${{ needs.get-version.outputs.version }} \
PLATFORM=${{ matrix.arch_os }}

- name: Build and push image to DockerHub
run: |
cp artifacts/otelcol-sumo-${{matrix.arch_os}} otelcol-sumo
cp artifacts/otelcol-sumo-${{matrix.arch_os}}/otelcol-sumo-${{matrix.arch_os}} otelcol-sumo
make build-push-container-multiplatform \
BUILD_TAG=${{ needs.get-version.outputs.version }} \
PLATFORM=${{ matrix.arch_os }} \
REPO_URL=sumologic/sumologic-otel-collector

- name: Build and push UBI-based image to Open Source ECR
run: |
cp artifacts/otelcol-sumo-${{matrix.arch_os}} otelcol-sumo
cp artifacts/otelcol-sumo-${{matrix.arch_os}}/otelcol-sumo-${{matrix.arch_os}} otelcol-sumo
make build-push-container-ubi \
BUILD_TAG=${{ needs.get-version.outputs.version }} \
PLATFORM=${{ matrix.arch_os }} \
BUILD_TYPE_SUFFIX="-ubi"

- name: Build and push UBI-based image to DockerHub
run: |
cp artifacts/otelcol-sumo-${{matrix.arch_os}} otelcol-sumo
cp artifacts/otelcol-sumo-${{matrix.arch_os}}/otelcol-sumo-${{matrix.arch_os}} otelcol-sumo
make build-push-container-ubi \
BUILD_TAG=${{ needs.get-version.outputs.version }} \
PLATFORM=${{ matrix.arch_os }} \
Expand Down
Loading