swap
This commit is contained in:
@@ -10,13 +10,9 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set up swap space
|
- name: Increase swap space
|
||||||
run: |
|
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
|
||||||
sudo fallocate -l 4G /swapfile
|
|
||||||
sudo chmod 600 /swapfile
|
|
||||||
sudo mkswap /swapfile
|
|
||||||
sudo swapon /swapfile
|
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@@ -67,9 +63,4 @@ jobs:
|
|||||||
investbrainapp/investbrain:latest
|
investbrainapp/investbrain:latest
|
||||||
investbrainapp/investbrain:${{ env.version }}
|
investbrainapp/investbrain:${{ env.version }}
|
||||||
ghcr.io/investbrainapp/investbrain:latest
|
ghcr.io/investbrainapp/investbrain:latest
|
||||||
ghcr.io/investbrainapp/investbrain:${{ env.version }}
|
ghcr.io/investbrainapp/investbrain:${{ env.version }}
|
||||||
|
|
||||||
- name: Clean up swap space
|
|
||||||
run: |
|
|
||||||
sudo swapoff /swapfile
|
|
||||||
sudo rm /swapfile
|
|
||||||
Reference in New Issue
Block a user