Add docker auto-build
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 2m7s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 2m7s
This commit is contained in:
parent
6f238beb69
commit
c9602263d4
1 changed files with 19 additions and 0 deletions
19
.gitea/workflows/docker-publish.yaml
Normal file
19
.gitea/workflows/docker-publish.yaml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
name: Build and Publish Jimmy.2
|
||||||
|
run-name: Build and Publish Jimmy.2
|
||||||
|
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 .
|
||||||
|
- name: Log into container registry
|
||||||
|
run: |
|
||||||
|
docker login -u ${{ secrets.CR_USERNAME }} -p ${{ secrets.CR_PASSWORD }} git.i-am.nexus
|
||||||
|
- name: Push to container registry
|
||||||
|
run: |
|
||||||
|
docker push git.i-am.nexus/nex/college-bot:latest
|
Loading…
Reference in a new issue