college-bot-v2/.gitea/workflows/docker-publish.yaml

34 lines
No EOL
1,003 B
YAML

name: Build and Publish college-bot-v2
run-name: Build and Publish college-bot-v2
on:
push:
branches:
- 'master'
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