this?
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user