diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a75b914 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + dockerfile_lint: + runs-on: ubuntu-latest + container: + image: node:18 + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Run dockerfile_lint + run: npx --cache .npx dockerfile_lint + + docker_build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build Docker image + run: docker build -t tor-socks-proxy:${{ github.sha }} . diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fac7e9d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -dist: focal - -git: - depth: 5 - -matrix: - include: - - env: - - task=shellcheck - language: node_js - node_js: - - "18" - cache: - directories: - - .npx - script: - - npx --cache .npx dockerfile_lint - - env: - - task=Docker build - language: minimal - services: - - docker - script: - - docker build -t tor-socks-proxy:$TRAVIS_COMMIT . diff --git a/README.md b/README.md index f82c58b..b268693 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ # Tor-socks-proxy ![license](https://img.shields.io/badge/license-GPLv3.0-brightgreen.svg?style=flat) -[![Build Status](https://app.travis-ci.com/PeterDaveHello/tor-socks-proxy.svg?branch=master)](https://app.travis-ci.com/PeterDaveHello/tor-socks-proxy) +[![Build Status](https://github.com/PeterDaveHello/tor-socks-proxy/actions/workflows/ci.yml/badge.svg)](https://github.com/PeterDaveHello/tor-socks-proxy/actions/workflows/ci.yml) [![Docker Hub pulls](https://img.shields.io/docker/pulls/peterdavehello/tor-socks-proxy.svg)](https://hub.docker.com/r/peterdavehello/tor-socks-proxy/) [![Docker Hub badge](http://dockeri.co/image/peterdavehello/tor-socks-proxy)](https://hub.docker.com/r/peterdavehello/tor-socks-proxy/)