|
|
|
@ -14,18 +14,19 @@ jobs:
|
|
|
|
|
- name: Prepare
|
|
|
|
|
id: prep
|
|
|
|
|
run: |
|
|
|
|
|
echo "building ref: $GITHUB_REF"
|
|
|
|
|
|
|
|
|
|
TAG=null
|
|
|
|
|
TAGS=null
|
|
|
|
|
IMAGE=place1/wg-access-server
|
|
|
|
|
if [[ "$GITHUB_REF" == refs/heads/master ]]; then
|
|
|
|
|
TAG="$IMAGE:master"
|
|
|
|
|
TAGS="$IMAGE:master"
|
|
|
|
|
elif [[ "$GITHUB_REF" == refs/tags/* ]]; then
|
|
|
|
|
VERSION="${REF#refs/tags/}"
|
|
|
|
|
TAG="$IMAGE:$VERSION,$IMAGE:latest"
|
|
|
|
|
TAGS="$IMAGE:$VERSION,$IMAGE:latest"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo ::set-output name=tag::${TAG}
|
|
|
|
|
echo "building ref: $GITHUB_REF"
|
|
|
|
|
echo "docker images: $TAGS"
|
|
|
|
|
|
|
|
|
|
echo ::set-output name=tags::${TAGS}
|
|
|
|
|
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
@ -52,4 +53,4 @@ jobs:
|
|
|
|
|
file: Dockerfile
|
|
|
|
|
platforms: linux/amd64, linux/arm64, linux/arm/v7
|
|
|
|
|
push: true
|
|
|
|
|
tags: ${{ steps.prep.outputs.tag }}
|
|
|
|
|
tags: ${{ steps.prep.outputs.tags }}
|
|
|
|
|