mirror of
https://github.com/adferrand/docker-backuppc.git
synced 2023-11-05 04:40:26 +01:00
Working on release pipeline
This commit is contained in:
parent
608e2cde71
commit
b42194f056
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@ -19,8 +19,6 @@ jobs:
|
|||||||
- name: Build container image
|
- name: Build container image
|
||||||
run: |
|
run: |
|
||||||
docker buildx create --use
|
docker buildx create --use
|
||||||
VERSION=`cat VERSION`
|
|
||||||
echo "Docker tag is: ${VERSION}"
|
|
||||||
docker buildx build --platform linux/amd64 --tag adferrand/backuppc --load .
|
docker buildx build --platform linux/amd64 --tag adferrand/backuppc --load .
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
docker save adferrand/backuppc | gzip -c -1 > dist/docker-backuppc.tar.gz
|
docker save adferrand/backuppc | gzip -c -1 > dist/docker-backuppc.tar.gz
|
||||||
@ -62,4 +60,3 @@ jobs:
|
|||||||
echo "Expect the backupp configuration page without errors"
|
echo "Expect the backupp configuration page without errors"
|
||||||
grep "The servers PID is" <(echo $output)
|
grep "The servers PID is" <(echo $output)
|
||||||
docker rm -f backuppc-integration
|
docker rm -f backuppc-integration
|
||||||
|
|
||||||
|
24
.github/workflows/release.yml
vendored
Normal file
24
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags: ["4.*"]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: Build, tag and push Docker multi-arch manifest to Docker Hub
|
||||||
|
run: |
|
||||||
|
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||||
|
docker buildx create --use
|
||||||
|
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 .
|
Loading…
x
Reference in New Issue
Block a user