Nexus
c9f84aa561
Some checks failed
Build and Publish Jimmy.2 / build_and_publish (push) Failing after 17s
it doesn't actually matter, its just a build script
19 lines
No EOL
810 B
YAML
19 lines
No EOL
810 B
YAML
name: Build and Publish Jimmy.2
|
|
run-name: Build and Publish Jimmy.2
|
|
on: [push]
|
|
|
|
jobs:
|
|
build_and_publish:
|
|
runs-on: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04]
|
|
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 git.i-am.nexus/nex/college-bot:$(git rev-parse --short "$GITHUB_SHA") .
|
|
- 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 && docker push git.i-am.nexus/nex/college-bot:$(git rev-parse --short "$GITHUB_SHA") |