-
Notifications
You must be signed in to change notification settings - Fork 43
43 lines (41 loc) · 1.28 KB
/
image.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: build image
on:
push:
branches:
- master
release:
types:
- created
schedule:
- cron: '11 23 * * 2'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
with:
install: true
- name: Builder instance name
run: echo ${{ steps.buildx.outputs.name }}
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: tag and push devel image
run: |
docker build --push \
--tag dmstraub/gramps-webapi:latest-devel \
--platform linux/amd64,linux/arm/v7,linux/arm64 .
- name: tag and push release image
if: github.event_name == 'release'
run: |
docker build --push \
--tag dmstraub/gramps-webapi:${{ github.event.release.tag_name }} \
--tag dmstraub/gramps-webapi:latest \
--platform linux/amd64,linux/arm/v7,linux/arm64 .