Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Go CI

on:
pull_request:
push:
branches:
- main

workflow_dispatch:
inputs:
skip_tests:
description: 'Skip running tests'
required: false
default: false
type: boolean
triggered_user:
description: 'Who triggered the workflow'
required: false
default: "<!here>"
type: string

jobs:
go-ci:
permissions:
id-token: write
contents: write
packages: read
uses: punchh/GHA-central-workflow/.github/workflows/go-ci.yml@main

with:
repository: ${{ github.repository }}
branch: ${{ github.event_name == 'workflow_dispatch' && github.ref_name || (github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref_name) }}
go_version: 1.24.1
triggered_user: ${{ github.event_name == 'workflow_dispatch' && inputs.triggered_user || '<!here>' }}
skip_tests: ${{ github.event_name == 'workflow_dispatch' && inputs.skip_tests || false }}
test_cases: false
snyk_severity_threshold: "critical"
go_build: true
secrets:
SVC_ACCOUNT_GITHUB_ORG_TOKEN: ${{ secrets.SVC_ACCOUNT_GITHUB_ORG_TOKEN }}
SVC_ACCOUNT_SNYK_ORG_TOKEN: ${{ secrets.SVC_ACCOUNT_SNYK_ORG_TOKEN }}
CAPTAIN_DEVOPS_SLACK_BOT_TOKEN: ${{ secrets.CAPTAIN_DEVOPS_SLACK_BOT_TOKEN }}
30 changes: 0 additions & 30 deletions .github/workflows/go.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: '1.21.5'
go-version: '1.24'
cache: true
# More assembly might be required: Docker logins, GPG, etc. It all depends
# on your needs.
Expand Down
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM alpine:3.21.3
RUN apk update \
&& apk --no-cache add ca-certificates \
&& apk --no-cache add -U tzdata \
&& rm -rf /var/cache/apk/*

WORKDIR /server
COPY server .

EXPOSE 8080
CMD ["./server"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Codepush server go is compatible with [react-native-code-push](https://github.co

## Support version
- [mysql](https://dev.mysql.com/downloads/mysql/) >= 8.0
- [golang](https://go.dev/dl/) >= 1.21.5
- [golang](https://go.dev/dl/) >= 1.24
- [redis](https://redis.io/downloads/) >= 5.0

## Support client version
Expand Down
3 changes: 0 additions & 3 deletions config/app.json

This file was deleted.

44 changes: 0 additions & 44 deletions config/app.prod.json

This file was deleted.

Loading