socks5-server/.github/workflows/release.yml

36 lines
1.0 KiB
YAML
Raw Permalink Normal View History

2020-03-21 00:49:31 +03:00
name: "Release tag"
env:
DOCKERHUB_REPOSITORY: serjs/go-socks5-proxy
on:
release:
# Only use the types keyword to narrow down the activity types that will trigger your workflow.
types: [published, edited]
2020-03-21 00:49:31 +03:00
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: Release version
2021-07-07 19:20:17 +03:00
run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV
2020-03-21 00:49:31 +03:00
- name: Print release version
2021-07-07 19:20:17 +03:00
run: echo ${{ env.RELEASE_VERSION }}
2020-03-21 00:49:31 +03:00
- 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:$RELEASE_VERSION" \
.