This commit is contained in:
hackerESQ
2025-01-27 13:23:00 -06:00
parent 16fed7a8ca
commit 8c4d0fa1a1
2 changed files with 13 additions and 3 deletions
+12 -3
View File
@@ -29,6 +29,17 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Increase swap space
run: sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=4096 && sudo /sbin/mkswap /var/swap.1 && sudo /sbin/swapon /var/swap.1
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Extract version from tag
id: extract-version
run: |
@@ -44,6 +55,4 @@ jobs:
investbrainapp/investbrain:latest
investbrainapp/investbrain:${{ env.version }}
ghcr.io/investbrainapp/investbrain:latest
ghcr.io/investbrainapp/investbrain:${{ env.version }}
ghcr.io/investbrainapp/investbrain:${{ env.version }}
+1
View File
@@ -10,6 +10,7 @@ ENV SELF_HOSTED=true
COPY . /var/www/app
WORKDIR /var/www/app
# Allow PHP installs to be built cross-platform
ENV CFLAGS="-fstack-protector-strong -fpic -fPIC -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
# Install required packages