2020-03-21 00:04:10 +03:00
|
|
|
name: "Master release"
|
|
|
|
env:
|
|
|
|
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
|
|
DOCKERHUB_REPOSITORY: serjs/go-socks5-proxy
|
2020-03-20 23:03:48 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: master
|
|
|
|
push:
|
|
|
|
branches: master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
buildx:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
2020-03-20 23:14:50 +03:00
|
|
|
-
|
|
|
|
name: Thisdir
|
|
|
|
run: ls -la
|
2020-03-20 23:03:48 +03:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
id: buildx
|
2020-03-20 23:08:29 +03:00
|
|
|
uses: crazy-max/ghaction-docker-buildx@v1.1.0
|
2020-03-20 23:03:48 +03:00
|
|
|
-
|
|
|
|
name: Print builder available platforms
|
|
|
|
run: echo ${{ steps.buildx.outputs.platforms }}
|
|
|
|
-
|
|
|
|
name: Run Buildx
|
|
|
|
run: |
|
|
|
|
docker buildx build \
|
2020-03-20 23:09:43 +03:00
|
|
|
--platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 \
|
2020-03-20 23:03:48 +03:00
|
|
|
--output "type=image,push=false" \
|
2020-03-21 00:06:06 +03:00
|
|
|
--push \
|
2020-03-21 00:07:46 +03:00
|
|
|
--tag latest \
|
2020-03-20 23:17:02 +03:00
|
|
|
.
|