Skip to content

Commit 8f29da5

Browse files
authored
Merge branch 'main' into security-txt
2 parents 0bc5e95 + 9452061 commit 8f29da5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+6729
-248
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: daedalus-docker-build
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
paths:
7+
- .github/workflows/daedalus-docker.yml
8+
- 'apps/daedalus/**'
9+
pull_request:
10+
types: [ opened, synchronize ]
11+
paths:
12+
- .github/workflows/daedalus-docker.yml
13+
- 'apps/daedalus/**'
14+
merge_group:
15+
types: [ checks_requested ]
16+
17+
jobs:
18+
docker:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
- name: Fetch docker metadata
24+
id: docker_meta
25+
uses: docker/metadata-action@v3
26+
with:
27+
images: ghcr.io/modrinth/daedalus
28+
-
29+
name: Login to GitHub Images
30+
uses: docker/login-action@v1
31+
with:
32+
registry: ghcr.io
33+
username: ${{ github.actor }}
34+
password: ${{ secrets.GITHUB_TOKEN }}
35+
-
36+
name: Build and push
37+
id: docker_build
38+
uses: docker/build-push-action@v2
39+
with:
40+
file: ./apps/daedalus_client/Dockerfile
41+
push: ${{ github.event_name != 'pull_request' }}
42+
tags: ${{ steps.docker_meta.outputs.tags }}
43+
labels: ${{ steps.docker_meta.outputs.labels }}

.github/workflows/daedalus-run.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Run Meta
2+
3+
on:
4+
schedule:
5+
- cron: '*/5 * * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
run-docker:
10+
if: github.repository_owner == 'modrinth'
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
17+
- name: Log in to GitHub Container Registry
18+
uses: docker/login-action@v2
19+
with:
20+
registry: ghcr.io
21+
username: ${{ github.actor }}
22+
password: ${{ secrets.GITHUB_TOKEN }}
23+
24+
25+
- name: Pull Docker image from GHCR
26+
run: docker pull ghcr.io/modrinth/daedalus:main
27+
28+
- name: Run Docker container
29+
env:
30+
BASE_URL: ${{ secrets.BASE_URL }}
31+
S3_ACCESS_TOKEN: ${{ secrets.S3_ACCESS_TOKEN }}
32+
S3_SECRET: ${{ secrets.S3_SECRET }}
33+
S3_URL: ${{ secrets.S3_URL }}
34+
S3_REGION: ${{ secrets.S3_REGION }}
35+
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}
36+
CLOUDFLARE_INTEGRATION: ${{ secrets.CLOUDFLARE_INTEGRATION }}
37+
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
38+
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
39+
run: |
40+
docker run \
41+
--name daedalus \
42+
-e RUST_LOG=warn,daedalus_client=trace \
43+
-e BASE_URL=$BASE_URL \
44+
-e S3_ACCESS_TOKEN=$S3_ACCESS_TOKEN \
45+
-e S3_SECRET=$S3_SECRET \
46+
-e S3_URL=$S3_URL \
47+
-e S3_REGION=$S3_REGION \
48+
-e S3_BUCKET_NAME=$S3_BUCKET_NAME \
49+
-e CLOUDFLARE_INTEGRATION=$CLOUDFLARE_INTEGRATION \
50+
-e CLOUDFLARE_TOKEN=$CLOUDFLARE_TOKEN \
51+
-e CLOUDFLARE_ZONE_ID=$CLOUDFLARE_ZONE_ID \
52+
ghcr.io/modrinth/daedalus:master

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/daedalus.iml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/discord.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/libraries/KotlinJavaRuntime.xml

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)