first commit

This commit is contained in:
vanalmsick 2025-09-27 18:19:06 +01:00
commit e7f627801f
152 changed files with 35352 additions and 0 deletions

27
.github/workflows/auto-merge.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Auto-merge master/main back to dev branch
on:
pull_request:
types:
- closed
branches:
- master
- main
jobs:
merge-master-back-to-dev:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Git config
run: |
git config --local user.email "actions@github.com"
git config --local user.name "Github Actions"
- name: Merge master back to dev
run: |
git fetch --unshallow
git checkout dev
git pull
git merge --no-ff main -m "Auto-merge master/main branch back to dev"
git push

29
.github/workflows/dev-deploy.yml vendored Normal file
View file

@ -0,0 +1,29 @@
name: Development Deployment
on:
push:
branches: [ 'dev' ]
paths-ignore: [ '.github/**', 'docs/**', 'README.md' ]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/arm64/v8,linux/amd64
push: true
tags: ${{secrets.DOCKER_USER}}/workout_challenge:dev

58
.github/workflows/prod-deploy.yml vendored Normal file
View file

@ -0,0 +1,58 @@
name: Production Deployment
on:
pull_request:
types:
- closed
branches:
- master
- main
paths-ignore: [ '.github/**', 'docs/**', 'README.md' ]
jobs:
autotag:
if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v4
id: checkout
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: '0'
- name: Bump version and push tag
id: tagger
uses: anothrNick/github-tag-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
out_tag: ${{ steps.tagger.outputs.tag }}
out_new_tag: ${{ steps.tagger.outputs.new_tag }}
out_part: ${{ steps.tagger.outputs.part }}
docker:
runs-on: ubuntu-latest
needs: autotag
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/arm64/v8,linux/amd64
push: true
tags: ${{ secrets.DOCKER_USER }}/workout_challenge:latest,${{ secrets.DOCKER_USER }}/workout_challenge:${{ needs.autotag.outputs.out_tag }}