Skip to content

Commit 13160e4

Browse files
use Harbor registry and update Docker/CI config (#740)
* CHanged docker images to Harbor * CHanged docker images to Harbor --------- Co-authored-by: Drizzentic <derrickrono@gmail.com>
1 parent 328559d commit 13160e4

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

.github/workflows/docker-image-scan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313

1414
- name: Build an image from Dockerfile
1515
run: |
16-
docker build -t jembi/openhim-console:${{ github.sha }} .
16+
docker build -t harbor.jembidev.org/platform/openhim-console:${{ github.sha }} .
1717
1818
- name: Run trivy vulnerability scanner for the OpenHIM console image
1919
uses: aquasecurity/trivy-action@master
2020
with:
21-
image-ref: jembi/openhim-console:${{ github.sha }}
21+
image-ref: harbor.jembidev.org/platform/openhim-console:${{ github.sha }}
2222
format: 'sarif'
2323
output: 'trivy-results.sarif'
2424

.github/workflows/master.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ jobs:
2121
- name: Set up QEMU
2222
uses: docker/setup-qemu-action@v2
2323

24-
- name: Login to Docker Hub
25-
uses: docker/login-action@v2
24+
- name: Login to Harbor
25+
uses: docker/login-action@v3
2626
with:
27-
username: ${{ secrets.DOCKER_HUB_USERNAME }}
28-
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
27+
registry: harbor.jembidev.org
28+
username: ${{ secrets.HARBOR_USERNAME }}
29+
password: ${{ secrets.HARBOR_PASSWORD }}
2930

3031
- name: Set up Docker Buildx
3132
id: buildx
@@ -39,4 +40,4 @@ jobs:
3940
file: ./Dockerfile
4041
platforms: linux/amd64,linux/arm64
4142
push: true
42-
tags: jembi/openhim-console:latest
43+
tags: harbor.jembidev.org/platform/openhim-console:latest

.github/workflows/tags.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ jobs:
2323
- name: Set env
2424
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
2525

26-
- name: Login to Docker Hub
27-
uses: docker/login-action@v2
26+
- name: Login to Harbor
27+
uses: docker/login-action@v3
2828
with:
29-
username: ${{ secrets.DOCKER_HUB_USERNAME }}
30-
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
29+
registry: harbor.jembidev.org
30+
username: ${{ secrets.HARBOR_USERNAME }}
31+
password: ${{ secrets.HARBOR_PASSWORD }}
3132

3233
- name: Set up Docker Buildx
3334
id: buildx
@@ -41,4 +42,4 @@ jobs:
4142
file: ./Dockerfile
4243
platforms: linux/amd64,linux/arm64
4344
push: true
44-
tags: jembi/openhim-console:${{ env.RELEASE_VERSION }}
45+
tags: harbor.jembidev.org/platform/openhim-console:${{ env.RELEASE_VERSION }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ npm test
132132

133133
## Deployments
134134

135-
All commits to the `master` branch will automatically trigger a build of the latest changes into a docker image on dockerhub.
135+
All commits to the `master` branch will automatically trigger a build of the latest changes into a Docker image at `harbor.jembidev.org/platform/openhim-console`.
136136

137137
---
138138

infrastructure/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ services:
3434

3535
openhim-console:
3636
container_name: openhim-console
37-
image: jembi/openhim-console:latest
37+
image: harbor.jembidev.org/platform/openhim-console:latest
3838
restart: unless-stopped
3939
networks:
4040
- openhim

0 commit comments

Comments
 (0)