nexy7574
486a4425cb
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 14s
31 lines
No EOL
971 B
YAML
31 lines
No EOL
971 B
YAML
name: Build and Publish college-bot-v2
|
|
run-name: Build and Publish college-bot-v2
|
|
on: [push]
|
|
|
|
jobs:
|
|
build_and_publish:
|
|
runs-on: [ubuntu-latest]
|
|
steps:
|
|
- name: Check out repository code
|
|
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 forgejo CR
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.i-am.nexus
|
|
username: nex
|
|
password: ${{ secrets.CR_PASSWORD }}
|
|
- 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 |