add new ci file
This commit is contained in:
26
.gitea/workflows/build_ci.yml
Normal file
26
.gitea/workflows/build_ci.yml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
name: ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ vars.REGISTRY_DOCKER }}
|
||||||
|
username: ${{ secrets.REGISTRY_DOCKER_USER }}
|
||||||
|
password: ${{ secrets.REGISTRY_DOCKER_PASS }}
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: user/app:latest
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
name: Gitea Actions to build image
|
name: Gitea Actions to build image
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
on: [push]
|
on: [never]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -62,7 +62,7 @@ jobs:
|
|||||||
- name: Log into registry ${{ vars.REGISTRY_DOCKER }}
|
- name: Log into registry ${{ vars.REGISTRY_DOCKER }}
|
||||||
# env:
|
# env:
|
||||||
# REGISTRY_DOCKER: registry.jingoh.fr
|
# REGISTRY_DOCKER: registry.jingoh.fr
|
||||||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
|
uses: docker/login-action@v3 # v3.0.0
|
||||||
with:
|
with:
|
||||||
registry: ${{ vars.REGISTRY_DOCKER }}
|
registry: ${{ vars.REGISTRY_DOCKER }}
|
||||||
username: ${{ secrets.REGISTRY_DOCKER_USER }}
|
username: ${{ secrets.REGISTRY_DOCKER_USER }}
|
||||||
|
|||||||
Reference in New Issue
Block a user