2024-06-03 15:34:01 +01:00
|
|
|
name: Build and Publish college-bot-v2
|
|
|
|
run-name: Build and Publish college-bot-v2
|
2024-06-09 01:38:39 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
2024-04-25 19:21:01 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_and_publish:
|
2024-06-03 15:34:01 +01:00
|
|
|
runs-on: [ubuntu-latest]
|
2024-04-25 19:21:01 +01:00
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build Docker image
|
|
|
|
run: |
|
2024-06-03 15:42:27 +01:00
|
|
|
docker build -t git.i-am.nexus/nex/college-bot:latest -t ghcr.io/nexy7574/college-bot:latest .
|
2024-06-03 15:34:01 +01:00
|
|
|
- name: Log into forgejo CR
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
registry: git.i-am.nexus
|
|
|
|
username: nex
|
|
|
|
password: ${{ secrets.CR_PASSWORD }}
|
2024-06-03 15:42:27 +01:00
|
|
|
- name: Push to forgejo CR
|
2024-04-25 19:21:01 +01:00
|
|
|
run: |
|
2024-06-03 15:34:01 +01:00
|
|
|
docker push git.i-am.nexus/nex/college-bot:latest
|
2024-06-03 15:42:27 +01:00
|
|
|
- name: Log into GHCR
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: nexy7574
|
|
|
|
password: ${{ secrets.GHCR_PASSWORD }}
|
|
|
|
- name: Push to GHCR
|
|
|
|
run: |
|
2024-06-03 15:34:01 +01:00
|
|
|
docker push ghcr.io/nexy7574/college-bot:latest
|