docker-backuppc/.github/workflows/release.yml

25 lines
813 B
YAML
Raw Normal View History

2023-10-27 11:39:58 +02:00
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 .