socks5-server/.github/workflows/master.yml
Sergey Bogatyrets 173777f365 Up
2020-03-21 00:22:48 +03:00

40 lines
977 B
YAML

name: "Master release"
env:
DOCKERHUB_REPOSITORY: serjs/go-socks5-proxy
on:
pull_request:
branches: master
push:
branches: master
jobs:
buildx:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v1
-
name: Set up Docker Buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1.1.0
-
name: Print builder available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
-
name: Dockerhub login
uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
-
name: Run Buildx
run: |
docker buildx build \
--platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 \
--output "type=image,push=false" \
--push \
--tag "$DOCKERHUB_REPOSITORY/latest" \
.