Push to GHCR separately, label container
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 14s
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 14s
This commit is contained in:
parent
ca20eaf45c
commit
486a4425cb
2 changed files with 15 additions and 8 deletions
|
@ -10,20 +10,22 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: |
|
run: |
|
||||||
docker build -t git.i-am.nexus/nex/college-bot:latest -t ghcr.io/nexy7574/college-bot:latest .
|
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 }}
|
|
||||||
- name: Log into forgejo CR
|
- name: Log into forgejo CR
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.i-am.nexus
|
registry: git.i-am.nexus
|
||||||
username: nex
|
username: nex
|
||||||
password: ${{ secrets.CR_PASSWORD }}
|
password: ${{ secrets.CR_PASSWORD }}
|
||||||
- name: Push to container registry
|
- name: Push to forgejo CR
|
||||||
run: |
|
run: |
|
||||||
docker push git.i-am.nexus/nex/college-bot:latest
|
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
|
docker push ghcr.io/nexy7574/college-bot:latest
|
|
@ -1,5 +1,10 @@
|
||||||
FROM python:3.11-bookworm
|
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
|
WORKDIR /app
|
||||||
|
|
||||||
RUN DEBIAN_FRONTEND=noninteractive apt-get update
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update
|
||||||
|
|
Loading…
Reference in a new issue