31 lines (28 loc) Β· 1.11 KB
/
container-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
# sync with https://github.com/fphammerle/docker-onion-service/blob/master/.github/workflows/container-image.yml
name: container image
on:
push:
pull_request:
schedule:
- cron: '0 20 * * 5'
jobs:
docker-build:
runs-on: ubuntu-20.04
steps:
- uses: docker/setup-qemu-action@v2.1.0
- uses: docker/setup-buildx-action@v2.0.0
# > By default, this action uses the Git context so you don't need to use
# > the actions/checkout action to checkout the repository because this
# > will be done directly by buildkit. [...]
# > any file mutation in the steps that precede [...] will be ignored,
# > including processing of the .dockerignore file
# https://github.com/marketplace/actions/build-and-push-docker-images
# > The commit history is not preserved.
# https://docs.docker.com/engine/reference/commandline/build/#git-repositories
- uses: docker/build-push-action@v3.2.0
with:
build-args: | # git history unavailable (see above)
SETUPTOOLS_SCM_PRETEND_VERSION=0
platforms: |
linux/amd64
# missing cffi wheel for linux/arm/v7