2024-06-03 18:17:39 +01:00
|
|
|
name: Build and Publish
|
|
|
|
run-name: Build and Publish
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_and_publish:
|
|
|
|
runs-on: [ubuntu-latest]
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
packages: write
|
|
|
|
steps:
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log into forgejo CR
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
registry: git.i-am.nexus
|
|
|
|
username: nex
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
2024-06-03 18:19:26 +01:00
|
|
|
- name: Build Docker image
|
|
|
|
run: |
|
|
|
|
docker build -t git.i-am.nexus/nex/link-elongater:latest -t git.i-am.nexus/nex/link-elongater:${branch#refs/heads/} .
|
2024-06-03 18:17:39 +01:00
|
|
|
- name: Push to forgejo CR
|
|
|
|
run: |
|
|
|
|
docker push -a git.i-am.nexus/nex/link-elongater
|