Push to GHCR separately, label container
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 14s

This commit is contained in:
Nexus 2024-06-03 15:42:27 +01:00
parent ca20eaf45c
commit 486a4425cb
2 changed files with 15 additions and 8 deletions

View file

@ -10,20 +10,22 @@ jobs:
uses: actions/checkout@v4
- name: Build Docker image
run: |
docker build -t git.i-am.nexus/nex/college-bot:latest -t ghcr.io/nexy7574/college-bot:latest .
- name: Log into GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: nexy7574
password: ${{ secrets.GHCR_PASSWORD }}
docker build -t git.i-am.nexus/nex/college-bot:latest -t ghcr.io/nexy7574/college-bot:latest .
- name: Log into forgejo CR
uses: docker/login-action@v3
with:
registry: git.i-am.nexus
username: nex
password: ${{ secrets.CR_PASSWORD }}
- name: Push to container registry
- name: Push to forgejo CR
run: |
docker push git.i-am.nexus/nex/college-bot:latest
- name: Log into GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: nexy7574
password: ${{ secrets.GHCR_PASSWORD }}
- name: Push to GHCR
run: |
docker push ghcr.io/nexy7574/college-bot:latest

View file

@ -1,5 +1,10 @@
FROM python:3.11-bookworm
LABEL org.opencontainers.image.source https://git.i-am.nexus/nex/college-bot-v2
LABEL org.opencontainers.image.licenses AGPL-3.0
LABEL org.opencontainers.image.title "College Bot v2"
LABEL org.opencontainers.image.description "Version 2 of jimmy."
WORKDIR /app
RUN DEBIAN_FRONTEND=noninteractive apt-get update