Skip to content

Commit 0e976d9

Browse files
authored
Merge pull request #22 from redhat-developer/release-fix
Change dockerfile base image and login to quay securely
2 parents 5372e0a + 457d32a commit 0e976d9

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

.github/workflows/dockerimage-next.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ jobs:
2020
- name: Checkout web-terminal-exec source code
2121
uses: actions/checkout@v2
2222

23-
- name: Docker Build & Push
24-
uses: docker/[email protected]
25-
with:
26-
username: ${{ secrets.QUAY_USERNAME }}
27-
password: ${{ secrets.QUAY_PASSWORD }}
28-
registry: quay.io
29-
repository: wto/web-terminal-exec
30-
dockerfile: ./build/dockerfiles/Dockerfile
31-
tags: next
32-
tag_with_sha: true
23+
- name: "Docker Quay.io Login with WTO Robot"
24+
env:
25+
DOCKER_USERNAME: ${{ secrets.QUAY_USERNAME }}
26+
DOCKER_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
27+
run: |
28+
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin quay.io
29+
30+
- name: "Docker build and push"
31+
run: |
32+
docker build -f ./build/dockerfiles/Dockerfile -t quay.io/wto/web-terminal-exec:next .
33+
docker push quay.io/wto/web-terminal-exec:next

build/dockerfiles/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
# Red Hat, Inc. - initial API and implementation
1010
#
1111

12-
# https://access.redhat.com/containers/?tab=tags#/registry.access.redhat.com/rhel8/go-toolset
13-
FROM rhel8/go-toolset:1.13.4-27 as builder
12+
# https://access.redhat.com/containers/?tab=tags#/registry.access.redhat.com/ubi8/go-toolset
13+
FROM registry.access.redhat.com/ubi8/go-toolset:1.14.12 as builder
1414
ENV GOPATH=/go/
1515
USER root
1616
WORKDIR /che-machine-exec/

0 commit comments

Comments
 (0)