mirror of
https://github.com/adferrand/docker-backuppc.git
synced 2023-11-05 04:40:26 +01:00
Setup full workflows
This commit is contained in:
parent
b42194f056
commit
a9d5cfa09e
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@ -5,6 +5,7 @@ on:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
workflow_call:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}
|
||||
|
23
.github/workflows/release.yml
vendored
23
.github/workflows/release.yml
vendored
@ -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:
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user