2020-06-23 17:17:15 +00:00
|
|
|
name: buildpack-deps
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [ develop ]
|
|
|
|
paths:
|
|
|
|
- 'scripts/docker/buildpack-deps/Dockerfile.emscripten'
|
|
|
|
- 'scripts/docker/buildpack-deps/Dockerfile.ubuntu1604.clang.ossfuzz'
|
|
|
|
- 'scripts/docker/buildpack-deps/Dockerfile.ubuntu2004.clang'
|
|
|
|
- 'scripts/docker/buildpack-deps/Dockerfile.ubuntu2004'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
buildpack-deps:
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2020-07-15 15:42:15 +00:00
|
|
|
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
DOCKER_REPOSITORY: solbuildpackpusher/solidity-buildpack-deps
|
2020-06-23 17:17:15 +00:00
|
|
|
IMAGE_NAME: buildpack-deps
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2020-12-04 16:43:35 +00:00
|
|
|
image_variant: [emscripten, ubuntu1604.clang.ossfuzz, ubuntu2004.clang, ubuntu2004]
|
2020-06-23 17:17:15 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Upgrade ${{ env.IMAGE_NAME }}-${{ matrix.image_variant }}
|
|
|
|
run: |
|
2020-07-15 15:42:15 +00:00
|
|
|
echo ${DOCKERHUB_TOKEN} | docker login -u solbuildpackpusher --password-stdin
|
2020-06-23 17:17:15 +00:00
|
|
|
scripts/ci/docker_upgrade.sh ${{ env.IMAGE_NAME }} ${{ matrix.image_variant }} ${{ env.DOCKER_REPOSITORY }}
|
2020-07-15 15:42:15 +00:00
|
|
|
docker logout
|
2020-06-23 17:17:15 +00:00
|
|
|
|
|
|
|
- name: comment PR
|
|
|
|
if: "env.DOCKER_IMAGE"
|
2022-08-15 17:32:38 +00:00
|
|
|
# NOTE: Can't update to v1.3.1 due to an error: `/entrypoint.sh:5:in 'require_relative': cannot load such file -- /lib/github (LoadError)`
|
|
|
|
uses: unsplash/comment-on-pr@ffe8f97ccc63ce12c3c23c6885b169db67958d3b #v1.3.0
|
2020-06-23 17:17:15 +00:00
|
|
|
with:
|
2022-08-15 17:32:38 +00:00
|
|
|
msg: "`${{ env.DOCKER_IMAGE }} ${{ env.DOCKER_REPO_DIGEST }}`."
|
|
|
|
check_for_duplicate_msg: false
|
|
|
|
|