Skip to content

Commit 24cd3ad

Browse files
committedOct 12, 2024
add nexus
1 parent b5c2c63 commit 24cd3ad

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed
 

‎.forgejo/workflows/tofu.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
terraform:
10-
runs-on: docker
10+
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
1313
uses: actions/checkout@v4
@@ -24,9 +24,9 @@ jobs:
2424
run: rm -f install-opentofu.sh
2525

2626
- name: Initialize OpenTofu
27-
run: opentofu init
27+
run: tofu init
2828
working-directory: ./terraform
2929

3030
- name: Apply OpenTofu
31-
run: opentofu apply -auto-approve
31+
run: tofu apply -input=false
3232
working-directory: ./terraform

‎docker/nexus/docker-compose.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
services:
3+
nexus:
4+
image: sonatype/nexus3:3.70.3
5+
container_name: nexus
6+
restart: unless-stopped
7+
ports:
8+
- 8081:8081
9+
- 8082:8082
10+
volumes:
11+
- /docker/appdata/nexus:/nexus-data ## To get to work run: sudo chown -R 200 /docker/appdata/nexus/ | cat /docker/appdata/nexus/admin.password

0 commit comments

Comments
 (0)
Please sign in to comment.