This commit is contained in:
70
.gitea/workflows/docker-build.yml
Normal file
70
.gitea/workflows/docker-build.yml
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
name: Docker Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Docker image
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: open the docker socket
|
||||||
|
run: sudo chmod 666 /var/run/docker.sock
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
run: |
|
||||||
|
docker buildx build \
|
||||||
|
--file docker/Dockerfile \
|
||||||
|
--tag uzurka/geneweb:latest \
|
||||||
|
--tag uzurka/geneweb:${{ github.sha }} \
|
||||||
|
--platform linux/amd64,linux/arm64,linux/arm/v7 \
|
||||||
|
--push \
|
||||||
|
.
|
||||||
|
|
||||||
|
- name: Build Success
|
||||||
|
uses: rjstone/discord-webhook-notify@v1
|
||||||
|
if: success()
|
||||||
|
with:
|
||||||
|
severity: info
|
||||||
|
details: <@436978132105560064> Geneweb Docker image build sucessfull !
|
||||||
|
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
|
username: Gitea uzurka
|
||||||
|
avatar_url: https://download.uzurka.fr/Logo/uzurka200.png
|
||||||
|
|
||||||
|
- name: Build Failure
|
||||||
|
uses: rjstone/discord-webhook-notify@v1
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
severity: error
|
||||||
|
details: <@436978132105560064> Geneweb Docker image build failed !
|
||||||
|
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
|
username: Gitea uzurka
|
||||||
|
avatar_url: https://download.uzurka.fr/Logo/uzurka200.png
|
||||||
|
|
||||||
|
- name: Build Cancelled
|
||||||
|
uses: rjstone/discord-webhook-notify@v1
|
||||||
|
if: cancelled()
|
||||||
|
with:
|
||||||
|
severity: warn
|
||||||
|
details: <@436978132105560064> Geneweb Docker image build cancelled !
|
||||||
|
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
|
username: Gitea uzurka
|
||||||
|
avatar_url: https://download.uzurka.fr/Logo/uzurka200.png
|
||||||
28
.gitea/workflows/docker-pushrm.yml
Normal file
28
.gitea/workflows/docker-pushrm.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
name: Docker Push README
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- 'README.md'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Docker Push README
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: push README to Dockerhub
|
||||||
|
uses: christian-korneck/update-container-description-action@v1
|
||||||
|
env:
|
||||||
|
DOCKER_USER: Uzurka
|
||||||
|
DOCKER_PASS: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
with:
|
||||||
|
destination_container_repo: uzurka/geneweb
|
||||||
|
provider: dockerhub
|
||||||
|
short_description: 'GeneWeb is an open source genealogy software written in OCaml. It comes with a Web interface and can be used off-line or as a Web service.'
|
||||||
|
readme_file: 'README.md'
|
||||||
Reference in New Issue
Block a user