Skip to content

Commit

Permalink
Set build platform
Browse files Browse the repository at this point in the history
  • Loading branch information
trent-codecov committed Dec 9, 2023
1 parent 50be7c2 commit 5c45bd7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 16 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/test-api-ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: Test API Image CI

on:
push:
branches:
- main
paths:
- integration-tests/test-api/**
pull_request:
paths:
- integration-tests/test-api/**
Expand All @@ -18,19 +13,9 @@ concurrency:
jobs:
build:
name: Build API Test
if: github.event_name != 'push'
uses: codecov/gha-workflows/.github/workflows/build-and-push-dockerhub.yml@v1.2.14
secrets: inherit
with:
push: false
image_name: codecov-javascript-bundler-plugins-test-api
docker_path: integration-tests/test-api
push:
name: Build API Test
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/build-and-push-dockerhub.yml@v1.2.14
secrets: inherit
with:
push: true
image_name: codecov-javascript-bundler-plugins-test-api
docker_path: integration-tests/test-api
24 changes: 24 additions & 0 deletions .github/workflows/test-api-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test API Image Push

on:
push:
branches:
- main
paths:
- integration-tests/test-api/**

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true


jobs:
push:
name: Push API Test
if: github.repository_owner == 'codecov'
uses: codecov/gha-workflows/.github/workflows/build-and-push-dockerhub.yml@v1.2.14
secrets: inherit
with:
push: true
image_name: codecov-javascript-bundler-plugins-test-api
docker_path: integration-tests/test-api
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ push.${IMAGE_NAME}:
docker push ${dockerhub_image}:latest

save.${IMAGE_NAME}:
docker save -o ${IMAGE_NAME}.tar ${dockerhub_image}:${sha}
docker save -o ${IMAGE_NAME}.tar ${dockerhub_image}:${sha}

0 comments on commit 5c45bd7

Please sign in to comment.