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

29 lines
947 B
YAML
Raw Normal View History

2024-06-03 15:34:01 +01:00
name: Build and Publish college-bot-v2
run-name: Build and Publish college-bot-v2
2024-04-25 19:21:01 +01:00
on: [push]
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:34:01 +01:00
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
uses: docker/login-action@v3
with:
registry: git.i-am.nexus
username: nex
password: ${{ secrets.CR_PASSWORD }}
2024-04-25 19:21:01 +01:00
- name: Push to container registry
run: |
2024-06-03 15:34:01 +01:00
docker push git.i-am.nexus/nex/college-bot:latest
docker push ghcr.io/nexy7574/college-bot:latest