Skip to content

Commit

Permalink
Fix pipeline for PR without secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
winromulus committed Dec 20, 2021
1 parent 77f97f4 commit 3bd73b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ jobs:
username: ${{ secrets.ES_DOCKERHUB_USERNAME }}
password: ${{ secrets.ES_DOCKERHUB_PAT }}

- name: "docker - push"
- name: "docker - build and push"
if: github.event_name == 'push'
run: |
docker push ${{env.imageRepository}}:build-${{env.version}}-amd64
docker push ${{env.imageRepository}}:build-${{env.version}}-arm32v7
docker push ${{env.imageRepository}}:build-${{env.version}}-arm64v8
docker buildx build --push --platform linux/amd64 -t ${{env.imageRepository}}:build-${{env.version}}-amd64 -f src/docker/Dockerfile src/docker
docker buildx build --push --platform linux/arm -t ${{env.imageRepository}}:build-${{env.version}}-arm32v7 -f src/docker/Dockerfile src/docker
docker buildx build --push --platform linux/arm64 -t ${{env.imageRepository}}:build-${{env.version}}-arm64v8 -f src/docker/Dockerfile src/docker
docker manifest create ${{env.imageRepository}}:build-${{env.version}} ${{env.imageRepository}}:build-${{env.version}}-amd64 ${{env.imageRepository}}:build-${{env.version}}-arm32v7 ${{env.imageRepository}}:build-${{env.version}}-arm64v8
docker manifest inspect ${{env.imageRepository}}:build-${{env.version}}
docker manifest push ${{env.imageRepository}}:build-${{env.version}}
Expand Down

0 comments on commit 3bd73b8

Please sign in to comment.