link-elongater/.gitea/workflows/docker.yml

26 lines
677 B
YAML
Raw Normal View History

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.CR_TOKEN }}
2024-06-03 18:19:26 +01:00
- name: Build Docker image
run: |
2024-06-03 18:19:53 +01:00
docker build -t git.i-am.nexus/nex/link-elongater:latest .
2024-06-03 18:17:39 +01:00
- name: Push to forgejo CR
run: |
docker push -a git.i-am.nexus/nex/link-elongater