Skip to content

Commit

Permalink
try to fix gihhub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
EugenMayer committed Oct 22, 2024
1 parent 26342c8 commit 06b7a23
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_bitnami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- name: Generate certificates
run: cd tls && ./generate-certs.sh
# push only on main
- name: Build type1
uses: docker/build-push-action@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build_osixia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
context: .
platforms: linux/amd64
push: true
file: Dockerfile_osixia
tags: |
${{ env.IMAGE_FQDN }}:osixia-type1
${{ env.IMAGE_FQDN }}:osixia-type1-${{ github.ref_name }}
Expand All @@ -40,6 +41,7 @@ jobs:
context: .
platforms: linux/amd64
push: true
file: Dockerfile_osixia
tags: |
${{ env.IMAGE_FQDN }}:osixia-type2
${{ env.IMAGE_FQDN }}:osixia-type2-${{ github.ref_name }}
Expand Down
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ set -e

cd tls
echo "You will be asked for sudo to chown the certs to 1001:1001"
./generate-certs.sh ldap
sudo ./generate-certs.sh ldap

dc up -d
4 changes: 2 additions & 2 deletions tls/generate-certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ openssl req -nodes -newkey rsa:2048 -keyout ${SSL_DIR}/tls.key -out ${SSL_DIR}/c
openssl x509 -req -days 1825 -in ${SSL_DIR}/cert.csr -CA ${SSL_DIR}/ca.crt -CAkey ${SSL_DIR}/ca.key -CAcreateserial -out ${SSL_DIR}/cert.crt

# this is the user the container runs openldap as
sudo chown 1001:1001 $SSL_DIR/*
sudo chmod 400 $SSL_DIR/tls.key
chown 1001:1001 $SSL_DIR/*
chmod 400 $SSL_DIR/tls.key

0 comments on commit 06b7a23

Please sign in to comment.