Skip to content

Commit

Permalink
Merge pull request #413 from vania-pooh/master
Browse files Browse the repository at this point in the history
Automatically building an image for quay.io repository
  • Loading branch information
vania-pooh authored Feb 22, 2021
2 parents 63f1177 + ab08cd0 commit 1a441a8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions ci/docker-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 10 additions & 0 deletions quay/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 1a441a8

Please sign in to comment.