Skip to content

Commit

Permalink
Simplify Docker build action.#
Browse files Browse the repository at this point in the history
  • Loading branch information
thmull committed Aug 9, 2023
1 parent 7b3f4f6 commit b8de01b
Showing 1 changed file with 3 additions and 47 deletions.
50 changes: 3 additions & 47 deletions .github/workflows/build-and-push-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,10 @@ jobs:
build-args: VERSION=${{ env.VERSION }}
file: ./docker/Eps.dockerfile
tags: ${{ steps.meta_hyper.outputs.tags }}
push: false
push: true
load: true
labels: |
kiprotect.hyper.image.revision=${{ github.sha }}
- name: Sign and push versioned Hyper image
uses: sudo-bot/action-docker-sign@latest
with:
image-ref: ${{fromJSON(steps.meta_hyper.outputs.json).tags[0]}}
private-key-id: ${{ secrets.DOCKER_HUB_DCT_PRIVATE_KEY_IDENTIFIER }}
private-key: ${{ secrets.DOCKER_HUB_DCT_PRIVATE_KEY }}
private-key-passphrase: ${{ secrets.DOCKER_HUB_DCT_PASSPHRASE }}
- name: Sign and push latest Hyper image
uses: sudo-bot/action-docker-sign@latest
with:
image-ref: ${{fromJSON(steps.meta_hyper.outputs.json).tags[1]}}
private-key-id: ${{ secrets.DOCKER_HUB_DCT_PRIVATE_KEY_IDENTIFIER }}
private-key: ${{ secrets.DOCKER_HUB_DCT_PRIVATE_KEY }}
private-key-passphrase: ${{ secrets.DOCKER_HUB_DCT_PASSPHRASE }}

- name: Create sd image tag
id: meta_sd
uses: docker/metadata-action@v3
Expand All @@ -67,25 +52,10 @@ jobs:
build-args: VERSION=${{ env.VERSION }}
file: ./docker/Sd.dockerfile
tags: ${{ steps.meta_sd.outputs.tags }}
push: false
push: true
load: true
labels: |
kiprotect.hyper-sd.image.revision=${{ github.sha }}
- name: Sign and push sd versioned image
uses: sudo-bot/action-docker-sign@latest
with:
image-ref: ${{fromJSON(steps.meta_sd.outputs.json).tags[0]}}
private-key-id: ${{ secrets.DOCKER_HUB_DCT_PRIVATE_KEY_IDENTIFIER }}
private-key: ${{ secrets.DOCKER_HUB_DCT_PRIVATE_KEY }}
private-key-passphrase: ${{ secrets.DOCKER_HUB_DCT_PASSPHRASE }}
- name: Sign and push sd latest image
uses: sudo-bot/action-docker-sign@latest
with:
image-ref: ${{fromJSON(steps.meta_sd.outputs.json).tags[1]}}
private-key-id: ${{ secrets.DOCKER_HUB_DCT_PRIVATE_KEY_IDENTIFIER }}
private-key: ${{ secrets.DOCKER_HUB_DCT_PRIVATE_KEY }}
private-key-passphrase: ${{ secrets.DOCKER_HUB_DCT_PASSPHRASE }}

- name: Create proxy image tag
id: meta_proxy
uses: docker/metadata-action@v3
Expand All @@ -97,21 +67,7 @@ jobs:
build-args: VERSION=${{ env.VERSION }}
file: ./docker/Proxy.dockerfile
tags: ${{ steps.meta_proxy.outputs.tags }}
push: false
push: true
load: true
labels: |
kiprotect.hyper-proxy.image.revision=${{ github.sha }}
- name: Sign and push proxy versioned image
uses: sudo-bot/action-docker-sign@latest
with:
image-ref: ${{fromJSON(steps.meta_proxy.outputs.json).tags[0]}}
private-key-id: ${{ secrets.DOCKER_HUB_DCT_PRIVATE_KEY_IDENTIFIER }}
private-key: ${{ secrets.DOCKER_HUB_DCT_PRIVATE_KEY }}
private-key-passphrase: ${{ secrets.DOCKER_HUB_DCT_PASSPHRASE }}
- name: Sign and push proxy latest image
uses: sudo-bot/action-docker-sign@latest
with:
image-ref: ${{fromJSON(steps.meta_proxy.outputs.json).tags[1]}}
private-key-id: ${{ secrets.DOCKER_HUB_DCT_PRIVATE_KEY_IDENTIFIER }}
private-key: ${{ secrets.DOCKER_HUB_DCT_PRIVATE_KEY }}
private-key-passphrase: ${{ secrets.DOCKER_HUB_DCT_PASSPHRASE }}

0 comments on commit b8de01b

Please sign in to comment.