test_ci_cd
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
# on:
|
||||
# push:
|
||||
# branches:
|
||||
# - main
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
@@ -19,7 +21,7 @@ jobs:
|
||||
- name: Login to Gitea Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ gitea.hostname }} # автоматически подставляется Gitea
|
||||
registry: ${{ gitea.server_url }} # автоматически подставляется Gitea
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.GITEATOKEN }}
|
||||
|
||||
@@ -27,7 +29,7 @@ jobs:
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ gitea.hostname }}/${{ gitea.repository }}
|
||||
images: ${{ gitea.server_url }}/${{ gitea.repository }}
|
||||
tags: |
|
||||
type=sha
|
||||
type=raw,value=latest
|
||||
|
||||
@@ -7,3 +7,5 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "${{ gitea.server_url }}"
|
||||
- name: Dump Gitea context
|
||||
run: echo "${{ toJSON(gitea) }}"
|
||||
Reference in New Issue
Block a user