Push to GHCR too
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 3m25s

This commit is contained in:
Nexus 2024-06-03 15:34:01 +01:00
parent cb21202b83
commit ca20eaf45c

View file

@ -1,19 +1,29 @@
name: Build and Publish Jimmy.2 name: Build and Publish college-bot-v2
run-name: Build and Publish Jimmy.2 run-name: Build and Publish college-bot-v2
on: [push] on: [push]
jobs: jobs:
build_and_publish: build_and_publish:
runs-on: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04] runs-on: [ubuntu-latest]
steps: steps:
- name: Check out repository code - name: Check out repository code
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 . docker build -t git.i-am.nexus/nex/college-bot:latest -t ghcr.io/nexy7574/college-bot:latest .
- name: Log into container registry - name: Log into GHCR
run: | uses: docker/login-action@v3
docker login -u ${{ secrets.CR_USERNAME }} -p ${{ secrets.CR_PASSWORD }} git.i-am.nexus with:
registry: ghcr.io
username: nexy7574
password: ${{ secrets.GHCR_PASSWORD }}
- 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 container registry
run: | run: |
docker push git.i-am.nexus/nex/college-bot:latest docker push git.i-am.nexus/nex/college-bot:latest
docker push ghcr.io/nexy7574/college-bot:latest