Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit 1a441a8

Browse files
authored
Merge pull request #413 from vania-pooh/master
Automatically building an image for quay.io repository
2 parents 63f1177 + ab08cd0 commit 1a441a8

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
env:
4949
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
5050
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
51+
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
52+
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
5153
run: ci/docker-push.sh latest
5254

5355
- name: Latest docs

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,16 @@ jobs:
5555
env:
5656
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
5757
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
58+
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
59+
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
5860
run: ci/docker-push.sh $RELEASE_VERSION
5961

6062
- name: Latest release image
6163
env:
6264
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
6365
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
66+
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
67+
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
6468
run: ci/docker-push.sh latest-release
6569

6670
- name: Release docs

ci/docker-push.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@
22

33
set -e
44

5+
# Docker Hub image
56
docker build -t $GITHUB_REPOSITORY .
67
docker tag $GITHUB_REPOSITORY $GITHUB_REPOSITORY:$1
78
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
89
docker push $GITHUB_REPOSITORY
910
docker push $GITHUB_REPOSITORY:$1
11+
12+
# quay.io image
13+
docker build -f quay/Dockerfile -t quay.io/$GITHUB_REPOSITORY .
14+
docker tag quay.io/$GITHUB_REPOSITORY quay.io/$GITHUB_REPOSITORY:$1
15+
docker login -u="$QUAY_USERNAME" -p="$QUAY_PASSWORD" quay.io
16+
docker push quay.io/$GITHUB_REPOSITORY
17+
docker push quay.io/$GITHUB_REPOSITORY:$1

quay/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM registry.access.redhat.com/ubi8/ubi-minimal
2+
3+
RUN update-ca-trust
4+
5+
ADD selenoid-ui /
6+
7+
ADD licenses /
8+
9+
EXPOSE 8080
10+
ENTRYPOINT ["/selenoid-ui"]

0 commit comments

Comments
 (0)