Setup full workflows

This commit is contained in:
Adrien Ferrand 2023-10-27 14:21:32 +02:00
parent b42194f056
commit a9d5cfa09e
2 changed files with 24 additions and 0 deletions

View File

@ -5,6 +5,7 @@ on:
branches: [master] branches: [master]
pull_request: pull_request:
branches: [master] branches: [master]
workflow_call:
concurrency: concurrency:
group: ${{ github.ref }} group: ${{ github.ref }}

View File

@ -5,6 +5,8 @@ on:
tags: ["4.*"] tags: ["4.*"]
jobs: jobs:
main:
uses: adferrand/docker-backuppc/.github/workflows/main.yml@${{ vars.GITHUB_SHA }}
docker: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -22,3 +24,24 @@ jobs:
VERSION="$(cat VERSION)" VERSION="$(cat VERSION)"
echo "Docker tag is: ${VERSION}" echo "Docker tag is: ${VERSION}"
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --tag adferrand/backuppc:${VERSION} --tag adferrand/backuppc:4 --tag adferrand/backuppc --push . docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --tag adferrand/backuppc:${VERSION} --tag adferrand/backuppc:4 --tag adferrand/backuppc --push .
github:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Get version and changelog
id: get-version
run: |
VERSION="${cat VERSION}"
echo "Version is: ${VERSION}"
echo "VERSION=${VERSION}" >> "${GITHUB_OUTPUT}"
python utils/extract_changelog.py "${VERSION}" > extracted_changelog.md
- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
name: Docker BackupPC ${{ steps.get-version.outputs.VERSION }}
body_path: extracted_changelog.md