mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2026-01-18 06:34:41 +01:00
Add github actions for multiarch
This commit is contained in:
21
build/build-docker.sh
Normal file
21
build/build-docker.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
# Enter the right path
|
||||
SCRIPT=`realpath $0`
|
||||
SCRIPTPATH=`dirname $SCRIPT`
|
||||
cd $SCRIPTPATH
|
||||
|
||||
# Set docker tag
|
||||
VERSION=`cat VERSION`
|
||||
if [[ $GITHUB_REF == "refs/heads/master" ]]; then
|
||||
TAG_TYPE="build"
|
||||
TAG_VERTION="${VERSION}-build"
|
||||
else
|
||||
TAG_TYPE="build-dev"
|
||||
TAG_VERTION="${VERSION}-build-dev"
|
||||
fi
|
||||
|
||||
# Build multiarch and push
|
||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 -t ${DOCKER_REPO}:${TAG_TYPE} -t ${DOCKER_REPO}:${TAG_VERSION} --push .
|
||||
8
build/gpgparams
Normal file
8
build/gpgparams
Normal file
@@ -0,0 +1,8 @@
|
||||
%no-protection
|
||||
%echo Generating a basic OpenPGP key
|
||||
Key-Type: RSA
|
||||
Key-Length: 2048
|
||||
Name-Real: pass-key
|
||||
Expire-Date: 0
|
||||
%commit
|
||||
%echo done
|
||||
Reference in New Issue
Block a user