socks5-server/.github/workflows/master.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 6: mapping key "name" already defined at line 1 line 19: mapping key "on" already defined at line 5 line 25: mapping key "jobs" already defined at line 7
2020-03-21 00:49:31 +03:00

50 lines
1.2 KiB
YAML

name: "Master release"
env:
DOCKERHUB_REPOSITORY: serjs/go-socks5-proxy
on: pull_request
name: hadolint action
jobs:
hadolintOnPr:
name: hadolint on pr
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: hadolint on pr
uses: burdzwastaken/hadolint-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HADOLINT_ACTION_DOCKERFILE_FOLDER: .
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
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ 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" \
.