|
4 | 4 | release: |
5 | 5 | types: [ published ] |
6 | 6 |
|
7 | | -env: |
8 | | - PYPY_IMAGE: jamiehewland/alpine-pypy:3.6-7.3-alpine3.11 |
9 | | - |
10 | 7 | jobs: |
11 | 8 | build: |
12 | 9 | runs-on: ubuntu-latest |
@@ -43,27 +40,22 @@ jobs: |
43 | 40 | [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//') |
44 | 41 | docker buildx build --platform=linux/amd64 --push -t graphiteapp/graphite-statsd:${VERSION} . |
45 | 42 | docker buildx build --platform=linux/amd64 --push -t graphiteapp/graphite-statsd:latest . |
46 | | -# - name: Build and push amd64 pypy image to Docker Hub |
47 | | -# run: | |
48 | | -# # Strip git ref prefix from version |
49 | | -# VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') |
50 | | -# # Strip "v" prefix from tag name |
51 | | -# [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo ${VERSION} | sed -e 's/^v//') |
52 | | -# docker buildx build --platform=linux/amd64 --build-arg BASEIMAGE=${PYPY_IMAGE} --build-arg python_binary=/usr/local/bin/pypy3 --build-arg python_extra_flags="" --push -t graphiteapp/graphite-statsd:${VERSION}-pypy . |
53 | 43 | - name: Build and push multi-platform images to Docker Hub |
54 | 44 | run: | |
55 | 45 | # Strip git ref prefix from version |
56 | 46 | VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') |
57 | 47 | # Strip "v" prefix from tag name |
58 | 48 | [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo ${VERSION} | sed -e 's/^v//') |
59 | | - docker buildx build --platform=linux/arm,linux/arm64,linux/s390x,linux/amd64 --push -t graphiteapp/graphite-statsd:${VERSION} . |
60 | | - docker buildx build --platform=linux/arm,linux/arm64,linux/s390x,linux/amd64 --push -t graphiteapp/graphite-statsd:latest . |
61 | | -# - name: Login to ghcr.io |
62 | | -# run: | |
63 | | -# echo "${{ secrets.GHCR_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin |
64 | | -# - name: Build and push amd64 pypy image to ghcr.io |
65 | | -# run: | |
66 | | -# docker buildx build --platform=linux/amd64 --build-arg BASEIMAGE=${PYPY_IMAGE} --build-arg python_binary=/usr/local/bin/pypy3 --push -t ghcr.io/graphite-project/graphite-statsd:test-pypy . |
67 | | -# - name: Build and push multi-platform images to ghcr.io |
68 | | -# run: | |
69 | | -# docker buildx build --platform=linux/arm,linux/arm64,linux/amd64 --push -t ghcr.io/graphite-project/graphite-statsd:test . |
| 49 | + docker buildx build --platform=linux/arm/v7,linux/arm64/v8,linux/s390x,linux/amd64 --push -t graphiteapp/graphite-statsd:${VERSION} . |
| 50 | + docker buildx build --platform=linux/arm/v7,linux/arm64/v8,linux/s390x,linux/amd64 --push -t graphiteapp/graphite-statsd:latest . |
| 51 | + - name: Login to ghcr.io |
| 52 | + run: | |
| 53 | + echo "${{ secrets.GITHUB_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin |
| 54 | + - name: Build and push multi-platform images to ghcr.io |
| 55 | + run: | |
| 56 | + # Strip git ref prefix from version |
| 57 | + VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') |
| 58 | + # Strip "v" prefix from tag name |
| 59 | + [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo ${VERSION} | sed -e 's/^v//') |
| 60 | + docker buildx build --platform=linux/arm/v7,linux/arm64/v8,linux/s390x,linux/amd64 --push -t ghcr.io/graphite-project/graphite-statsd:${VERSION} . |
| 61 | + docker buildx build --platform=linux/arm/v7,linux/arm64/v8,linux/s390x,linux/amd64 --push -t ghcr.io/graphite-project/graphite-statsd:latest . |
0 commit comments