Browse Source

again

jsc2 v1.2.5
Evan Feenstra 4 years ago
parent
commit
84a0cbee12
  1. 16
      .github/workflows/docker-build.yml

16
.github/workflows/docker-build.yml

@ -2,15 +2,10 @@ name: Docker build on push
env:
DOCKER_CLI_EXPERIMENTAL: enabled
# on:
# push:
# tags:
# - '*'
on:
push:
branches:
- master
tags:
- '*'
jobs:
build:
@ -47,14 +42,15 @@ jobs:
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Show set env variables again
- name: Test print env
run: |
printf " HEAD_TAG: %s\n" "${{ env.HEAD_TAG }}"
echo $RELEASE_TAG
echo ${{ env.RELEASE_TAG }}
- name: Run Docker buildx
run: |
docker buildx build \
--cache-from "type=local,src=/tmp/.buildx-cache" \
--cache-to "type=local,dest=/tmp/.buildx-cache" \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
--tag "${{ secrets.DOCKER_HUB_USER }}/sphinx-relay:${{ env.HEAD_TAG }}" \
--tag "${{ secrets.DOCKER_HUB_USER }}/sphinx-relay:${{ env.RELEASE_TAG }}" \
--output "type=registry" ./

Loading…
Cancel
Save