Skip to content

Commit 1ef0e43

Browse files
Use ghcr
1 parent 06b6b60 commit 1ef0e43

File tree

8 files changed

+22
-19
lines changed

8 files changed

+22
-19
lines changed

.github/workflows/build-deployment.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
- uses: actions/checkout@v4
1313
with:
1414
token: ${{ secrets.GITHUB_TOKEN }}
15-
- name: Login to Quay
16-
run: echo "${{ secrets.QUAY_ROBOT_TOKEN }}" | docker login -u "${{ secrets.QUAY_ROBOT_USERNAME }}" --password-stdin quay.io
15+
- name: Login to container registry
16+
run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u "${{ secrets.CR_USERNAME }}" --password-stdin
1717
- name: Build
1818
run: |
1919
cp config-template.json config.json
@@ -25,4 +25,4 @@ jobs:
2525
- name: Upload CC report
2626
run: bash <(curl -s https://codecov.io/bash) -f tests/clover.xml
2727
- name: Deploy
28-
run: ./docker/push_image.sh
28+
run: make build push

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ DB_CONTAINER=rmap-mysql
1212
HOST_UID=$(shell id -u)
1313
HOST_GID=$(shell id -g)
1414

15-
DOCKER_IMAGE_NAME = quay.io/reconmap/rest-api
15+
DOCKER_IMAGE_NAME = ghcr.io/reconmap/rest-api
1616
DOCKER_DEFAULT_TAG = $(DOCKER_IMAGE_NAME)
1717

1818
ifndef GIT_BRANCH_NAME

compose.debug.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
services:
2-
32
api:
43
container_name: rmap-api
5-
image: quay.io/reconmap/rest-api:latest
4+
image: ghcr.io/reconmap/rest-api:latest
65
build:
76
context: ./
87
dockerfile: docker/api/development.Dockerfile
@@ -34,4 +33,4 @@ services:
3433
PHP_IDE_CONFIG: ${PHP_IDE_CONFIG:-serverName=DOCKER_SERVER}
3534
XDEBUG_MODE: ${XDEBUG_MODE:-debug}
3635
XDEBUG_CONFIG: "client_host=host.docker.internal"
37-
XDEBUG_TRIGGER: 'yes'
36+
XDEBUG_TRIGGER: "yes"

compose.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010

1111
mysql:
1212
container_name: rmap-mysql
13-
image: quay.io/reconmap/rest-api-db:latest
13+
image: ghcr.io/reconmap/rest-api-db:latest
1414
build:
1515
context: ./
1616
dockerfile: docker/mysql/Dockerfile
@@ -30,7 +30,7 @@ services:
3030

3131
keycloak:
3232
container_name: rmap-keycloak
33-
image: quay.io/reconmap/keycloak-custom:latest
33+
image: ghcr.io/reconmap/keycloak-custom:latest
3434
command: "start --hostname=http://localhost:8080 --proxy-headers xforwarded --http-enabled true --import-realm"
3535
environment:
3636
KEYCLOAK_ADMIN: admin
@@ -50,7 +50,11 @@ services:
5050
ports:
5151
- "8080:8080"
5252
healthcheck:
53-
test: ["CMD-SHELL", "exec 3<>/dev/tcp/127.0.0.1/9000;echo -e 'GET /health/ready HTTP/1.1\r\nhost: http://localhost\r\nConnection: close\r\n\r\n' >&3;if [ $? -eq 0 ]; then echo 'Healthcheck Successful';exit 0;else echo 'Healthcheck Failed';exit 1;fi;"]
53+
test:
54+
[
55+
"CMD-SHELL",
56+
"exec 3<>/dev/tcp/127.0.0.1/9000;echo -e 'GET /health/ready HTTP/1.1\r\nhost: http://localhost\r\nConnection: close\r\n\r\n' >&3;if [ $? -eq 0 ]; then echo 'Healthcheck Successful';exit 0;else echo 'Healthcheck Failed';exit 1;fi;",
57+
]
5458
interval: 30s
5559
timeout: 10s
5660
retries: 3
@@ -60,7 +64,7 @@ services:
6064

6165
api:
6266
container_name: rmap-api
63-
image: quay.io/reconmap/rest-api:latest
67+
image: ghcr.io/reconmap/rest-api:latest
6468
build:
6569
context: ./
6670
dockerfile: docker/api/Dockerfile
@@ -94,7 +98,7 @@ services:
9498

9599
agent:
96100
container_name: rmap-agent
97-
image: quay.io/reconmap/agent:latest
101+
image: ghcr.io/reconmap/agent:latest
98102
ports:
99103
- "5520:5520"
100104
environment:

docker/api/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
FROM debian:bookworm-slim
22

3+
LABEL org.opencontainers.image.source=https://github.com/reconmap/reconmap
4+
LABEL org.opencontainers.image.description="reconmap/rest-api"
5+
LABEL org.opencontainers.image.licenses="Apache-2.0"
6+
37
ARG PHP_VERSION=8.4
48
ARG DEBIAN_FRONTEND=noninteractive
59

docker/api/development.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM quay.io/reconmap/rest-api:latest
1+
FROM ghcr.io/reconmap/rest-api:latest
22

33
RUN groupadd -g ${HOST_GID} reconmappers && \
44
useradd -u ${HOST_UID} -g ${HOST_GID} -m -s /bin/bash reconmapper

docker/mysql/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ LABEL maintainer="Reconmap engineering" \
77
org.opencontainers.image.documentation="https://docs.reconmap.com" \
88
org.opencontainers.image.licenses="GPL" \
99
org.opencontainers.image.url="https://github.com/reconmap/rest-api"
10+
LABEL org.opencontainers.image.source=https://github.com/reconmap/reconmap
11+
LABEL org.opencontainers.image.description="reconmap/rest-api-db"
1012

1113
ARG HOST_UID
1214
ARG HOST_GID

docker/push_image.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)