Build on gitea ation (#2)
All checks were successful
Build an image to deploy website / build (push) Successful in 1m6s
All checks were successful
Build an image to deploy website / build (push) Successful in 1m6s
Reviewed-on: #2 Co-authored-by: Julien Fastré <julien.fastre@champs-libres.coop> Co-committed-by: Julien Fastré <julien.fastre@champs-libres.coop>
This commit is contained in:
parent
89dd222381
commit
0421b38789
36
.drone.yml
36
.drone.yml
@ -1,36 +0,0 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
|
||||
steps:
|
||||
- name: build-presentation
|
||||
image: pandoc/minimal:2.18-alpine
|
||||
commands:
|
||||
- pandoc -t revealjs --resource-path=.:presentation/src/ -s presentation/src/index.md -o presentation/src/index.html
|
||||
- pandoc -t revealjs --resource-path=.:presentation/src/ -s presentation/src/essaimage.md -o presentation/src/essaimage.html
|
||||
|
||||
- name: build-docker-caddy
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: h3m6q87t.gra7.container-registry.ovh.net
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
dockerfile: presentation/Dockerfile
|
||||
context: presentation/
|
||||
repo: h3m6q87t.gra7.container-registry.ovh.net/prez-concept-chill/presentation
|
||||
tag: ${DRONE_TAG:=latest}
|
||||
pull_image: true
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 77c0bfbc5571bf62138acc8bcf1fdb4abcc1185a5d26b190f7f6db98b2f09e59
|
||||
|
||||
...
|
52
.gitea/workflows/build-image.yml
Normal file
52
.gitea/workflows/build-image.yml
Normal file
@ -0,0 +1,52 @@
|
||||
name: Build an image to deploy website
|
||||
|
||||
on:
|
||||
# Runs on pushes targeting the default branch
|
||||
push
|
||||
#tags:
|
||||
# - v*
|
||||
|
||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
# Build jobs
|
||||
build:
|
||||
runs-on: cth-ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
|
||||
- name: update packages
|
||||
run: apt-get update
|
||||
|
||||
- name: Setup pandoc
|
||||
uses: https://github.com/r-lib/actions/setup-pandoc@v1
|
||||
with:
|
||||
pandoc-version: '3.4'
|
||||
|
||||
- name: Build presentation main
|
||||
run: pandoc -t revealjs --resource-path=.:presentation/src/ -s presentation/src/index.md -o presentation/src/index.html
|
||||
|
||||
- name: Build presentation essaimage
|
||||
run: pandoc -t revealjs --resource-path=.:presentation/src/ -s presentation/src/essaimage.md -o presentation/src/essaimage.html
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: https://github.com/docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to registry
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
registry: 'h3m6q87t.gra7.container-registry.ovh.net'
|
||||
|
||||
- name: Build and push
|
||||
uses: https://github.com/docker/build-push-action@v5
|
||||
with:
|
||||
context: presentation/
|
||||
push: true
|
||||
tags: 'h3m6q87t.gra7.container-registry.ovh.net/prez-concept-chill/presentation:${{ github.ref_name }}'
|
Loading…
Reference in New Issue
Block a user