Skip to content

Commit bc8474f

Browse files
committed
Only build single platform in dev
1 parent 94ca114 commit bc8474f

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ jobs:
9898
file: ./Dockerfile
9999
cache-from: type=local,src=/tmp/.buildx-cache
100100
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max
101-
load: ${{ github.event_name == 'pull_request' }}
102-
push: ${{ github.event_name != 'pull_request' }}
103-
platforms: ${{ github.event_name == 'pull_request' && 'linux/amd64' || 'linux/amd64,linux/arm64' }}
101+
load: true
104102
tags: ${{ steps.docker_meta.outputs.tags }}
105103
# Use runtime labels from docker_meta as well as fixed labels
106104
labels: |
@@ -110,12 +108,13 @@ jobs:
110108
org.opencontainers.image.vendor=RADAR-base
111109
org.opencontainers.image.licenses=Apache-2.0
112110
113-
# If the image was pushed, we need to pull it again to inspect it
114-
- name: Pull image
115-
if: ${{ github.event_name != 'pull_request' }}
116-
run: docker pull ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }}
117-
118111
- name: Inspect image
119112
run: |
120113
docker image inspect ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }}
121114
docker run --rm ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }} curl --help
115+
116+
# If the image was pushed, we need to pull it again to inspect it
117+
- name: Push image
118+
if: ${{ github.event_name != 'pull_request' }}
119+
run: docker push ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }}
120+

0 commit comments

Comments
 (0)