This commit is contained in:
2026-04-23 00:04:57 +02:00
parent 9d21b17a4f
commit cf7925b545

View File

@@ -2,7 +2,7 @@ name: Build and Push Docker Image
on:
push:
branches: [ v3 ]
branches: [ "${{ gitea.base_ref }}" ]
jobs:
build:
@@ -13,10 +13,10 @@ jobs:
uses: actions/checkout@v4
- name: Login to Gitea Registry
run: echo "${{ vars.OCI_ACCESS_TOKEN }}" | docker login git.drath.cc -u drath --password-stdin
run: echo "${{ vars.OCI_ACCESS_TOKEN }}" | docker login git.drath.cc -u ${{ gitea.actor }} --password-stdin
- name: Build image
run: docker build -t git.drath.cc/drath/drath.cc:latest . --no-cache
run: docker build -t git.drath.cc/${{ gitea.repository }}:latest . --no-cache
- name: Push image
run: docker push git.drath.cc/drath/drath.cc:latest
run: docker push git.drath.cc/${{ gitea.repository }}:latest