This commit is contained in:
2024-09-07 16:45:56 +02:00
parent aa2694585e
commit 000869e242
10 changed files with 119 additions and 13 deletions

View File

@@ -0,0 +1,39 @@
name: "Check pour pull request"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
release:
types: [published]
jobs:
runs-on: ubuntu-latest
name: "Generation data pour merge sur master"
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get build container
id: adocbuild
uses: tonynv/asciidoctor-action@master
with:
program: "asciidoctor -D docs --backend=html5 -o index.html documentation/readme.adoc"
- name: Print execution time
run: echo "Time ${{ steps.adocbuild.outputs.time }}"
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Doc
path: ./docs
retention-days: 5
- name: build docker images
run: docker build -t gitea.borealian.ovh/mcmuzzle/ludikzone:latest -f ./docker-prod/Dockerfile .
- name: upload image
run: |
echo "${{ secrets.PERSO_GITEAPASSWORD}}" | docker login gitea.borealian.ovh --username mcmuzzle --password-stdin
docker push gitea.borealian.ovh/mcmuzzle/ludikzone:latest