-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (25 loc) · 1.17 KB
/
multiarch-java11-latest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Publish latest java 11 manifest
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Pull images
run: |
docker pull zapp88/mandrel-multiarch:amd64-java11-mandrel21.3.0.0
docker pull zapp88/mandrel-multiarch:arm64-java11-mandrel21.3.0.0
- name: Amend manifest
run: |
docker manifest create zapp88/mandrel-multiarch:java11-mandrel21.3.0.0 --amend zapp88/mandrel-multiarch:amd64-java11-mandrel21.3.0.0 --amend zapp88/mandrel-multiarch:arm64-java11-mandrel21.3.0.0
docker manifest push zapp88/mandrel-multiarch:java11-mandrel21.3.0.0
- name: Amend manifest latest
run: |
docker manifest create zapp88/mandrel-multiarch:java11-latest --amend zapp88/mandrel-multiarch:amd64-java11-mandrel21.3.0.0 --amend zapp88/mandrel-multiarch:arm64-java11-mandrel21.3.0.0
docker manifest push zapp88/mandrel-multiarch:java11-latest