Reduce docker space
Some checks are pending
Build and Publish Jimmy.2 / build_and_publish (push) Waiting to run

i forgot each container build is >1GB, so each commit is effectively >1GB, and I do NOT have that kind of storage.

Signed-off-by: Nexus <git@nexy7574.co.uk>
This commit is contained in:
Nexus 2024-05-04 22:17:24 +01:00
parent c9f84aa561
commit d49eefb76d

View file

@ -10,10 +10,10 @@ jobs:
uses: actions/checkout@v4
- name: Build Docker image
run: |
docker build -t git.i-am.nexus/nex/college-bot:latest -t git.i-am.nexus/nex/college-bot:$(git rev-parse --short "$GITHUB_SHA") .
docker build -t git.i-am.nexus/nex/college-bot:latest .
- name: Log into container registry
run: |
docker login -u ${{ secrets.CR_USERNAME }} -p ${{ secrets.CR_PASSWORD }} git.i-am.nexus
- name: Push to container registry
run: |
docker push git.i-am.nexus/nex/college-bot:latest && docker push git.i-am.nexus/nex/college-bot:$(git rev-parse --short "$GITHUB_SHA")
docker push git.i-am.nexus/nex/college-bot:latest