Compare commits
7 Commits
main
...
test_ci_cd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b728380f4 | ||
|
|
89770ee0bb | ||
|
|
6facedb04f | ||
|
|
d0c7b77387 | ||
|
|
155dd7e62e | ||
|
|
1cb58f18b5 | ||
|
|
92eb62e963 |
@@ -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: git.crutoboy.ru # автоматически подставляется 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: git.crutoboy.ru/${{ gitea.repository }}
|
||||
tags: |
|
||||
type=sha
|
||||
type=raw,value=latest
|
||||
@@ -40,5 +42,5 @@ jobs:
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
# cache-from: type=gha
|
||||
# cache-to: type=gha,mode=max
|
||||
11
.gitea/workflows/test_ci_cd.yml
Normal file
11
.gitea/workflows/test_ci_cd.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
name: Gitea Actions Demo
|
||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
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