Properly link docker image
All checks were successful
Build and Publish / build_and_publish (push) Successful in 1m21s
All checks were successful
Build and Publish / build_and_publish (push) Successful in 1m21s
This commit is contained in:
parent
85ab1f9539
commit
7f2983311a
2 changed files with 41 additions and 1 deletions
40
.gitea/workflows/docker.yml
Normal file
40
.gitea/workflows/docker.yml
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
name: Build and Publish
|
||||||
|
run-name: Build and Publish
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_and_publish:
|
||||||
|
runs-on: [ubuntu-latest]
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: |
|
||||||
|
git.i-am.nexus/nex/sentient-jimmy
|
||||||
|
tags: |
|
||||||
|
type=schedule
|
||||||
|
type=ref,event=branch
|
||||||
|
type=ref,event=pr
|
||||||
|
type=sha
|
||||||
|
|
||||||
|
- name: Log into forgejo CR
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.i-am.nexus
|
||||||
|
username: nex
|
||||||
|
password: ${{ secrets.CR_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
|
@ -1,6 +1,6 @@
|
||||||
services:
|
services:
|
||||||
sentient-jimmy:
|
sentient-jimmy:
|
||||||
image: sentient-jimmy:latest
|
image: git.i-am.nexus/nex/sentient-jimmy:master
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
Loading…
Reference in a new issue