Skip to content

Commit 05be3ba

Browse files
committed
Fix publish-ghcr
Signed-off-by: henmohr <henriquemohr@redes.ufsm.br>
1 parent dc092e8 commit 05be3ba

File tree

2 files changed

+45
-9
lines changed

2 files changed

+45
-9
lines changed

.env.example

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,31 @@ POSTGRES_PASSWORD=
99

1010
NEXTCLOUD_ADMIN_USER=
1111
NEXTCLOUD_ADMIN_PASSWORD=
12-
1312
NEXTCLOUD_TRUSTED_DOMAINS=
13+
14+
15+
OVERWRITECLIURL=
16+
OVERWRITEPROTOCOL=https
17+
OVERWRITEHOST=
18+
TRUSTED_PROXIES="172.16.0.0/12 192.168.0.0/16 10.0.0.0/8 fc00::/7 fe80::/10 2001:db8::/32"
19+
20+
21+
22+
23+
24+
TZ = ${NEXTCLOUD_TIMEZONE}
25+
POSTGRES_HOST: postgres-nextcloud
26+
DB_PORT: 5432
27+
POSTGRES_DB: ${NEXTCLOUD_DB_NAME}
28+
POSTGRES_USER: ${NEXTCLOUD_DB_USER}
29+
POSTGRES_PASSWORD: ${NEXTCLOUD_DB_PASSWORD}
30+
REDIS_HOST: redis-nextcloud
31+
REDIS_HOST_PORT: 6379
32+
REDIS_HOST_PASSWORD: ${NEXTCLOUD_REDIS_PASSWORD}
33+
NEXTCLOUD_ADMIN_USER: ${NEXTCLOUD_ADMIN_USERNAME}
34+
NEXTCLOUD_ADMIN_PASSWORD: ${NEXTCLOUD_ADMIN_PASSWORD}
35+
NEXTCLOUD_TRUSTED_DOMAINS: ${NEXTCLOUD_HOSTNAME}
36+
OVERWRITECLIURL: ${NEXTCLOUD_URL}
37+
OVERWRITEPROTOCOL: https
38+
OVERWRITEHOST: ${NEXTCLOUD_HOSTNAME}
39+
TRUSTED_PROXIES: 172.16.0.0/12 192.168.0.0/16 10.0.0.0/8 fc00::/7 fe80::/10 2001:db8::/32

.github/workflows/publish-ghcr.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
name: Docker image CI for GHCR
22

33
on:
4-
push
4+
push:
5+
branches:
6+
- add-actions
57

68
jobs:
7-
build_and_publish:
9+
build:
810
runs-on: ubuntu-latest
11+
912
steps:
10-
- uses: actions/checkout@v3
11-
- name: Build and push the image
12-
run: |
13-
docker login --username henmohr --password ${{ secrets.GH_PAT }} ghcr.io
14-
docker build . --tag ghcr.io/librecodecoop/nextcloud-images:30
15-
docker push ghcr.io/librecodecoop/nextcloud-images:30
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Log in to GitHub Container Registry
17+
run: echo ${{ secrets.GH_PAT }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
18+
19+
- name: Build Docker image
20+
run: docker build -t ghcr.io/librecodecoop/nextcloud-images:30 .
21+
22+
- name: Push Docker image
23+
run: docker push ghcr.io/librecodecoop/nextcloud-images:30
24+
25+

0 commit comments

Comments
 (0)