diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d01058d7..5e565942 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,6 +48,8 @@ jobs: env: DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} + QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} + QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} run: ci/docker-push.sh latest - name: Latest docs diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d1d0bba..3704eea7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,12 +55,16 @@ jobs: env: DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} + QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} + QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} run: ci/docker-push.sh $RELEASE_VERSION - name: Latest release image env: DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} + QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} + QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} run: ci/docker-push.sh latest-release - name: Release docs diff --git a/ci/docker-push.sh b/ci/docker-push.sh index 72845eca..9cc5d4c0 100755 --- a/ci/docker-push.sh +++ b/ci/docker-push.sh @@ -2,8 +2,16 @@ set -e +# Docker Hub image docker build -t $GITHUB_REPOSITORY . docker tag $GITHUB_REPOSITORY $GITHUB_REPOSITORY:$1 docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" docker push $GITHUB_REPOSITORY docker push $GITHUB_REPOSITORY:$1 + +# quay.io image +docker build -f quay/Dockerfile -t quay.io/$GITHUB_REPOSITORY . +docker tag quay.io/$GITHUB_REPOSITORY quay.io/$GITHUB_REPOSITORY:$1 +docker login -u="$QUAY_USERNAME" -p="$QUAY_PASSWORD" quay.io +docker push quay.io/$GITHUB_REPOSITORY +docker push quay.io/$GITHUB_REPOSITORY:$1 diff --git a/quay/Dockerfile b/quay/Dockerfile new file mode 100644 index 00000000..1a114c28 --- /dev/null +++ b/quay/Dockerfile @@ -0,0 +1,10 @@ +FROM registry.access.redhat.com/ubi8/ubi-minimal + +RUN update-ca-trust + +ADD selenoid-ui / + +ADD licenses / + +EXPOSE 8080 +ENTRYPOINT ["/selenoid-ui"]