Compare commits

..

1 commit

Author SHA1 Message Date
Peter Dave Hello
cf2d0db0d0 Migrate CI pipeline from Travis CI to GitHub Actions
Migrate the CI pipeline from Travis CI to GitHub Actions.

* **README.md**
  - Replace the Travis CI build status badge with a GitHub Actions build status badge.

* **.github/workflows/ci.yml**
  - Create a new GitHub Actions workflow file named `ci.yml`.
  - Add a job for `shellcheck` using `node:18` image.
  - Add a job for Docker build using `ubuntu-latest` image.

* **.travis.yml**
  - Remove the Travis CI configuration file.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/PeterDaveHello/tor-socks-proxy?shareId=XXXX-XXXX-XXXX-XXXX).
2024-12-07 20:46:36 +08:00
4 changed files with 32 additions and 26 deletions

30
.github/workflows/ci.yml vendored Normal file
View file

@ -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 }} .

View file

@ -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 .

View file

@ -1,4 +1,4 @@
FROM alpine:3.21
FROM alpine:3.20
LABEL maintainer="Peter Dave Hello <hsu@peterdavehello.org>"
LABEL name="tor-socks-proxy"

View file

@ -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/)