Skip to content

Commit

Permalink
Setup full workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Ferrand committed Oct 27, 2023
1 parent b42194f commit a9d5cfa
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [master]
pull_request:
branches: [master]
workflow_call:

concurrency:
group: ${{ github.ref }}
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
tags: ["4.*"]

jobs:
main:
uses: adferrand/docker-backuppc/.github/workflows/main.yml@${{ vars.GITHUB_SHA }}
docker:
runs-on: ubuntu-latest
steps:
Expand All @@ -22,3 +24,24 @@ jobs:
VERSION="$(cat 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 .
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

0 comments on commit a9d5cfa

Please sign in to comment.