From 323ab10d6cd47bfd1f75b1816db670b46a9b73cf Mon Sep 17 00:00:00 2001 From: Denis Zhdanov Date: Mon, 22 Feb 2021 12:18:12 +0100 Subject: [PATCH] temporary change forkflow to fix s390x --- .github/workflows/master-publish.yml | 52 +++++++++++++++------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/.github/workflows/master-publish.yml b/.github/workflows/master-publish.yml index e319b44..52cee8f 100644 --- a/.github/workflows/master-publish.yml +++ b/.github/workflows/master-publish.yml @@ -3,6 +3,8 @@ name: Build master on: push: branches: [ master ] + pull_request: + branches: [ master ] env: PYPY_IMAGE: jamiehewland/alpine-pypy:3.6-7.3-alpine3.11 @@ -19,31 +21,31 @@ jobs: platforms: all # Buildx provides an easier way of building Docker images for other architectures - uses: docker/setup-buildx-action@master - - name: Build amd64 python3 image - run: | - docker buildx build --platform=linux/amd64 --load -t graphiteapp/graphite-statsd:master . - - name: Run Snyk to check amd64 python3 image for vulnerabilities - uses: snyk/actions/docker@master - env: - SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} - with: - command: monitor - image: graphiteapp/graphite-statsd:master - args: --file=Dockerfile --platform=linux/amd64 --project-name=graphite-project/docker-graphite-statsd - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build and push amd64 python3 image to Docker Hub - run: | - docker buildx build --platform=linux/amd64 --push -t graphiteapp/graphite-statsd:master . - - name: Build and push amd64 pypy image to Docker Hub + - name: Build s390 python3 image run: | - docker buildx build --platform=linux/amd64 --build-arg BASEIMAGE=${PYPY_IMAGE} --build-arg python_binary=/usr/local/bin/pypy3 --push -t graphiteapp/graphite-statsd:master-pypy . -# - name: Login to ghcr.io + docker buildx build --platform=linux/s390x --load -t graphiteapp/graphite-statsd:master . +# - name: Run Snyk to check amd64 python3 image for vulnerabilities +# uses: snyk/actions/docker@master +# env: +# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} +# with: +# command: monitor +# image: graphiteapp/graphite-statsd:master +# args: --file=Dockerfile --platform=linux/amd64 --project-name=graphite-project/docker-graphite-statsd +# - name: Login to DockerHub +# uses: docker/login-action@v1 +# with: +# username: ${{ secrets.DOCKER_USERNAME }} +# password: ${{ secrets.DOCKER_PASSWORD }} +# - name: Build and push amd64 python3 image to Docker Hub # run: | -# echo "${{ secrets.GHCR_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin -# - name: Build and push amd64 pypy image to ghcr.io +# docker buildx build --platform=linux/amd64 --push -t graphiteapp/graphite-statsd:master . +# - name: Build and push amd64 pypy image to Docker Hub # run: | -# 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 . +# docker buildx build --platform=linux/amd64 --build-arg BASEIMAGE=${PYPY_IMAGE} --build-arg python_binary=/usr/local/bin/pypy3 --push -t graphiteapp/graphite-statsd:master-pypy . +## - name: Login to ghcr.io +## run: | +## echo "${{ secrets.GHCR_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin +## - name: Build and push amd64 pypy image to ghcr.io +## run: | +## 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 .