mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Push images to docker hub.
This commit is contained in:
parent
4e6b660839
commit
f7e180fb8f
7
.github/workflows/buildpack-deps.yml
vendored
7
.github/workflows/buildpack-deps.yml
vendored
@ -14,7 +14,8 @@ jobs:
|
||||
buildpack-deps:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
DOCKER_REPOSITORY: docker.pkg.github.com/${{ github.repository }}
|
||||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
DOCKER_REPOSITORY: solbuildpackpusher/solidity-buildpack-deps
|
||||
IMAGE_NAME: buildpack-deps
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
@ -31,9 +32,9 @@ jobs:
|
||||
|
||||
- name: Upgrade ${{ env.IMAGE_NAME }}-${{ matrix.image_variant }}
|
||||
run: |
|
||||
echo "${GITHUB_TOKEN}" | docker login docker.pkg.github.com -u "${GITHUB_ACTOR}" --password-stdin
|
||||
echo ${DOCKERHUB_TOKEN} | docker login -u solbuildpackpusher --password-stdin
|
||||
scripts/ci/docker_upgrade.sh ${{ env.IMAGE_NAME }} ${{ matrix.image_variant }} ${{ env.DOCKER_REPOSITORY }}
|
||||
docker logout docker.pkg.github.com
|
||||
docker logout
|
||||
|
||||
- name: comment PR
|
||||
if: "env.DOCKER_IMAGE"
|
||||
|
@ -54,15 +54,12 @@ docker run --rm --volume "${PWD}:/root/project" "${IMAGE_NAME}" "/root/project/s
|
||||
echo "-- push_docker"
|
||||
|
||||
VERSION=$(docker inspect --format='{{.Config.Labels.version}}' "${IMAGE_NAME}")
|
||||
DOCKER_IMAGE_ID="${DOCKER_REPOSITORY}/${IMAGE_NAME}-${IMAGE_VARIANT}"
|
||||
DOCKER_IMAGE_ID="${DOCKER_REPOSITORY}:${IMAGE_VARIANT}"
|
||||
|
||||
docker tag "${IMAGE_NAME}" "${DOCKER_IMAGE_ID}:${VERSION}"
|
||||
docker push "${DOCKER_IMAGE_ID}:${VERSION}"
|
||||
docker tag "${IMAGE_NAME}" "${DOCKER_IMAGE_ID}-${VERSION}"
|
||||
docker push "${DOCKER_IMAGE_ID}-${VERSION}"
|
||||
|
||||
REPO_DIGEST=$(docker inspect --format='{{.RepoDigests}}' "${DOCKER_IMAGE_ID}:${VERSION}")
|
||||
REPO_DIGEST=$(docker inspect --format='{{.RepoDigests}}' "${DOCKER_IMAGE_ID}-${VERSION}")
|
||||
|
||||
docker tag "${IMAGE_NAME}" "${DOCKER_IMAGE_ID}:latest"
|
||||
docker push "${DOCKER_IMAGE_ID}:latest"
|
||||
|
||||
echo "::set-env name=DOCKER_IMAGE::${DOCKER_IMAGE_ID}:${VERSION}"
|
||||
echo "::set-env name=DOCKER_IMAGE::${DOCKER_IMAGE_ID}-${VERSION}"
|
||||
echo "::set-env name=DOCKER_REPO_DIGEST::${REPO_DIGEST}"
|
||||
|
@ -29,7 +29,7 @@
|
||||
# make version=1.39.15 build
|
||||
#
|
||||
FROM emscripten/emsdk:1.39.15 AS base
|
||||
LABEL version="0"
|
||||
LABEL version="1"
|
||||
|
||||
ADD emscripten.jam /usr/src
|
||||
RUN set -ex; \
|
||||
|
@ -22,7 +22,7 @@
|
||||
# (c) 2016-2019 solidity contributors.
|
||||
#------------------------------------------------------------------------------
|
||||
FROM gcr.io/oss-fuzz-base/base-clang as base
|
||||
LABEL version="0"
|
||||
LABEL version="1"
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
# (c) 2016-2019 solidity contributors.
|
||||
#------------------------------------------------------------------------------
|
||||
FROM buildpack-deps:bionic AS base
|
||||
LABEL version="0"
|
||||
LABEL version="1"
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
# (c) 2016-2019 solidity contributors.
|
||||
#------------------------------------------------------------------------------
|
||||
FROM buildpack-deps:focal AS base
|
||||
LABEL version="0"
|
||||
LABEL version="1"
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
# (c) 2016-2019 solidity contributors.
|
||||
#------------------------------------------------------------------------------
|
||||
FROM buildpack-deps:focal AS base
|
||||
LABEL version="0"
|
||||
LABEL version="1"
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user