2024-04-25 19:21:01 +01:00
|
|
|
name: Build and Publish Jimmy.2
|
|
|
|
run-name: Build and Publish Jimmy.2
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_and_publish:
|
2024-05-04 22:20:38 +01:00
|
|
|
runs-on: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04]
|
2024-04-25 19:21:01 +01:00
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build Docker image
|
|
|
|
run: |
|
2024-05-04 22:17:24 +01:00
|
|
|
docker build -t git.i-am.nexus/nex/college-bot:latest .
|
2024-04-25 19:21:01 +01:00
|
|
|
- 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: |
|
2024-05-04 22:17:24 +01:00
|
|
|
docker push git.i-am.nexus/nex/college-bot:latest
|