Compare commits
7 commits
Author | SHA1 | Date | |
---|---|---|---|
1cbc72ea34 | |||
d13a05751f | |||
ed95a7f84a | |||
47239f51bc | |||
76d29851e7 | |||
53705cc4f8 | |||
c97663d0c3 |
2 changed files with 39 additions and 0 deletions
30
.forgejo/workflows/build-docker.yml
Normal file
30
.forgejo/workflows/build-docker.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
#
|
||||
# .gitea/gitea-ci.yaml
|
||||
#
|
||||
|
||||
name: Build
|
||||
run-name: ${{ gitea.actor }} is runs ci pipeline
|
||||
on: [ push ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: gitea.ref == 'refs/heads/build' #XXX
|
||||
steps:
|
||||
- uses: https://github.com/actions/checkout@v4
|
||||
- name: Set up Docker Buildx
|
||||
uses: https://github.com/docker/setup-buildx-action@v3
|
||||
#uses: https://github.com/Frankkkkk/setup-buildx-action@master
|
||||
with:
|
||||
config-inline: |
|
||||
[registry."<my-private-unsecure-git-repository-ip-address>:5000"]
|
||||
http = true
|
||||
insecure = true
|
||||
- name: Build and push Docker image
|
||||
uses: https://github.com/docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: "<my-private-unsecure-git-repository-ip-address>:5000/<my-docker-image>:${{gitea.sha}},<my-private-unsecure-git-repository-ip-address>:5000/<my-docker-image>:latest"
|
9
.forgejo/workflows/test.yaml
Normal file
9
.forgejo/workflows/test.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
on:
|
||||
push: '*'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Show env
|
||||
run: env
|
Loading…
Reference in a new issue