-
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the LinkAce Docker setup (#502)
- Removes the advanced image version where PHP and nginx are separated - Replaces nginx with Caddy - The release image is now ready to be used with SQLite without many hassles - Adjusts the build processes accordingly - Removes unnecessary config files
- Loading branch information
Showing
17 changed files
with
87 additions
and
428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,18 +6,12 @@ on: | |
- main | ||
|
||
jobs: | ||
|
||
build-js: | ||
name: Build assets for the package | ||
build-package: | ||
name: Build final dist package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Reconfigure Git to use HTTP authentication | ||
run: > | ||
git config --global url."https://github.com/".insteadOf | ||
ssh://[email protected]/ | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
|
@@ -28,35 +22,6 @@ jobs: | |
npm ci | ||
npm run production | ||
- name: Upload built assets | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: assets | ||
path: public/assets/dist | ||
|
||
- name: Upload mix manifest | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mix-manifest | ||
path: public/mix-manifest.json | ||
|
||
build-package: | ||
name: Build final dist package | ||
runs-on: ubuntu-latest | ||
needs: build-js | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: assets | ||
path: public/assets/dist | ||
|
||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: mix-manifest | ||
path: public | ||
|
||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
|
@@ -86,15 +51,12 @@ jobs: | |
- name: Remove .env file | ||
run: rm .env | ||
|
||
- uses: thedoctor0/zip-release@master | ||
with: | ||
filename: linkace.zip | ||
exclusions: '*.git*' | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: linkace-package | ||
path: linkace.zip | ||
path: | | ||
. | ||
!.git | ||
build-package-docker: | ||
name: Build final dist package for Docker setup | ||
|
@@ -106,26 +68,13 @@ jobs: | |
run: | | ||
mv .env.docker.production .env | ||
chmod 0666 .env | ||
mv docker-compose.production-simple.yml docker-compose.yml | ||
mv docker-compose.production.yml docker-compose.yml | ||
- uses: montudor/action-zip@v1 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
args: zip -qq linkace-package-docker-simple.zip docker-compose.yml .env LICENSE.md README.md | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: linkace-docker-simple | ||
path: linkace-package-docker-simple.zip | ||
|
||
- name: Rename files | ||
run: mv docker-compose.production.yml docker-compose.yml | ||
|
||
- uses: montudor/action-zip@v1 | ||
with: | ||
args: zip -qq linkace-package-docker-advanced.zip docker-compose.yml .env nginx.conf nginx-ssl.conf LICENSE.md README.md | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: linkace-docker-advanced | ||
path: linkace-package-docker-advanced.zip | ||
|
||
name: linkace-docker | ||
path: | | ||
docker-compose.yml | ||
.env | ||
LICENSE.md | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.