ci: fix docker username
This commit is contained in:
parent
440ca7563f
commit
2803a26870
2 changed files with 8 additions and 8 deletions
|
@ -3,12 +3,12 @@ name: Build and Push Docker Image
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main # Change this to your default branch if different
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build and Push Image
|
name: Build and Push Image
|
||||||
runs-on: ubuntu-latest-root # This specifies the environment for the job
|
runs-on: ubuntu-latest-root
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
|
@ -17,9 +17,9 @@ jobs:
|
||||||
- name: Login to Docker Registry
|
- name: Login to Docker Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.vavakado.xyz # Replace with your Docker registry URL
|
registry: git.vavakado.xyz
|
||||||
username: ${{ forgejo.actor }} # The actor who triggered the action
|
username: vavakado
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }} # Your registry token secret
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -20,9 +20,9 @@ jobs:
|
||||||
- name: Login to Docker Registry
|
- name: Login to Docker Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.vavakado.xyz # Replace with your Docker registry URL
|
registry: git.vavakado.xyz
|
||||||
username: ${{ forgejo.actor }} # The actor who triggered the action
|
username: vavakado
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }} # Your registry token secret
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Create Git Tag
|
- name: Create Git Tag
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue