This commit is contained in:
hackerESQ
2025-01-27 14:02:28 -06:00
parent b84602a5ed
commit 077b5257e8
+2 -11
View File
@@ -10,12 +10,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up swap space
run: |
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
- name: Increase swap space
run: sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=5120 && sudo chmod 600 /var/swap.1 && sudo /sbin/mkswap /var/swap.1 && sudo /sbin/swapon /var/swap.1
- name: Login to Docker Hub
uses: docker/login-action@v3
@@ -68,8 +64,3 @@ jobs:
investbrainapp/investbrain:${{ env.version }}
ghcr.io/investbrainapp/investbrain:latest
ghcr.io/investbrainapp/investbrain:${{ env.version }}
- name: Clean up swap space
run: |
sudo swapoff /swapfile
sudo rm /swapfile