add docker container repo push
All checks were successful
Build and Publish drop-in-url-previews / build_and_publish (push) Successful in 31s

This commit is contained in:
Nexus 2024-04-22 16:45:41 +01:00
parent 0af19ceb2f
commit a24a020fc7
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -0,0 +1,19 @@
name: Build and Publish drop-in-url-previews
run-name: Build and Publish drop-in-url-previews
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/drop-in-url-previews: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/drop-in-url-previews:latest