-
-
Notifications
You must be signed in to change notification settings - Fork 174
75 lines (68 loc) · 1.97 KB
/
build_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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: "build-latest"
on:
push:
branches:
- "main"
- "master"
paths:
- "src/**"
- ".github/workflows/**"
pull_request:
branches:
- "main"
- "master"
paths:
- "src/Dockerfile*"
jobs:
docker_buildx_debian:
runs-on: ubuntu-latest
timeout-minutes: 210
steps:
- name: Run Docker on tmpfs
uses: JonasAlfredsson/[email protected]
with:
tmpfs_size: 7
swap_size: 9
- name: Perform setup steps
uses: JonasAlfredsson/checkout-qemu-buildx@v2
with:
should_login: ${{ github.event_name != 'pull_request' }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push latest Debian image
uses: docker/[email protected]
with:
context: ./src
file: ./src/Dockerfile
platforms: |
linux/amd64
linux/386
linux/arm64
linux/arm/v7
push: ${{ github.event_name != 'pull_request' }}
tags: jonasal/nginx-certbot:latest
docker_buildx_alpine:
runs-on: ubuntu-latest
timeout-minutes: 100
steps:
- name: Run Docker on tmpfs
uses: JonasAlfredsson/[email protected]
with:
tmpfs_size: 7
swap_size: 9
- name: Perform setup steps
uses: JonasAlfredsson/checkout-qemu-buildx@v2
with:
should_login: ${{ github.event_name != 'pull_request' }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push latest Alpine image
uses: docker/[email protected]
with:
context: ./src
file: ./src/Dockerfile-alpine
platforms: |
linux/amd64
linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: jonasal/nginx-certbot:latest-alpine