diff --git a/.github/workflows/build_only.yml b/.github/workflows/build_only.yml new file mode 100644 index 0000000..90db050 --- /dev/null +++ b/.github/workflows/build_only.yml @@ -0,0 +1,19 @@ +name: Build only image +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + name: Build image job + steps: + - name: Checkout master + uses: actions/checkout@master + - name: Build image + uses: ilteoood/docker_buildx@master + with: + tag: latest,1.0 + platform: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/386,linux/arm/v7,linux/arm/v6 + imageName: ilteoood/docker-surfshark \ No newline at end of file diff --git a/.github/workflows/build_publish.yml b/.github/workflows/build_publish.yml new file mode 100644 index 0000000..6907a80 --- /dev/null +++ b/.github/workflows/build_publish.yml @@ -0,0 +1,23 @@ +name: Build and publish image +on: + release: + types: [published] + schedule: + - cron: '0 6 * * 1' + +jobs: + build: + runs-on: ubuntu-latest + name: Build image job + steps: + - name: Checkout master + uses: actions/checkout@master + - name: Build and publish image + uses: ilteoood/docker_buildx@master + with: + tag: latest,1.0 + imageName: ilteoood/docker-surfshark + platform: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/386,linux/arm/v7,linux/arm/v6 + publish: true + dockerHubUser: ilteoood + dockerHubPassword: ${{ secrets.DOCKER_HUB_PASSWORD }} \ No newline at end of file diff --git a/README.md b/README.md index 58ab6e3..16e3c62 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,14 @@ Docker container with OpenVPN client preconfigured for SurfShark +[![](https://images.microbadger.com/badges/version/ilteoood/docker-surfshark.svg)](https://microbadger.com/images/ilteoood/docker-surfshark "Get your own version badge on microbadger.com") +[![](https://images.microbadger.com/badges/image/ilteoood/docker-surfshark.svg)](https://microbadger.com/images/ilteoood/docker-surfshark "Get your own image badge on microbadger.com") +![Build only image](https://github.com/ilteoood/docker-surfshark/workflows/Build%20only%20image/badge.svg?branch=master) + ------------------------------------------------ -![logo](./images/logo.png) +

+ logo +

This is a [multi-arch](https://medium.com/gft-engineering/docker-why-multi-arch-images-matters-927397a5be2e) image, updated automatically thanks to [GitHub Actions](https://github.com/features/actions). @@ -20,11 +26,13 @@ The container is configurable using 4 environment variables: |SURFSHARK_USER|Yes|Username provided by SurfShark| |SURFSHARK_PASSWORD|Yes|Password provided by SurfShark| |SURFSHARK_COUNTRY|No|The country, supported by SurfShark, in which you want to connect| -|CONNECTION_TYPE|No|The connection type that you qant to use: tcp, udp| +|CONNECTION_TYPE|No|The connection type that you want to use: tcp, udp| `SURFSHARK_USER` and `SURFSHARK_PASSWORD` are provided at the bottom of this page: [https://account.surfshark.com/setup/manual](https://account.surfshark.com/setup/manual). -![SurfShark credentials](https://support.surfshark.com/hc/article_attachments/360007351360/6.png) +

+ SurfShark credentials +

## Execution