update ci
Some checks failed
Build and Push Base Image / build-and-push (push) Failing after 2m21s
Some checks failed
Build and Push Base Image / build-and-push (push) Failing after 2m21s
This commit is contained in:
parent
53ec2773ac
commit
6e07893e0d
@ -4,9 +4,9 @@ on:
|
||||
push:
|
||||
paths:
|
||||
- "basedockerfile"
|
||||
- ".gitea/workflows/build_image.yaml"
|
||||
# schedule:
|
||||
# - cron: "0 0 1 * *" # 每月1号00:00执行
|
||||
- ".gitea/workflows/build-image.yaml"
|
||||
schedule:
|
||||
- cron: "0 0 1 * *" # 每月1号00:00执行
|
||||
|
||||
env:
|
||||
REGISTRY: git.mamahaha.work
|
||||
@ -15,9 +15,14 @@ env:
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: https://git.mamahaha.work/actions/checkout@v4
|
||||
with:
|
||||
submodules: "recursive"
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: https://git.mamahaha.work/actions/setup-buildx-action@v3
|
||||
|
@ -1,15 +1,9 @@
|
||||
name: Test CI
|
||||
|
||||
on:
|
||||
push
|
||||
# push:
|
||||
# paths:
|
||||
# - "src/**"
|
||||
#
|
||||
|
||||
env:
|
||||
REGISTRY: git.mamahaha.work
|
||||
IMAGE_NAME: tpre
|
||||
push:
|
||||
paths:
|
||||
- "src/**"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@ -27,31 +21,3 @@ jobs:
|
||||
# run: |
|
||||
# ls $PWD/src
|
||||
# docker run --rm -v .:/app git.mamahaha.work/sangge/tpre:base ls
|
||||
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: https://git.mamahaha.work/actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: https://git.mamahaha.work/actions/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Private Registry
|
||||
uses: https://git.mamahaha.work/actions/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
|
||||
- name: Build and push
|
||||
uses: https://git.mamahaha.work/actions/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: basedockerfile
|
||||
push: true
|
||||
tags: |
|
||||
${{ env.REGISTRY }}/sangge/${{ env.IMAGE_NAME }}:base
|
||||
|
Loading…
x
Reference in New Issue
Block a user