Skip to content

Commit

Permalink
chore: update file names in build and release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
funnyzak committed Feb 19, 2024
1 parent f12bf9b commit 06adeec
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- '.github/**'
- '.gitignore'
- 'makefile'
- 'config.yaml.example'
- 'config.example.yaml'
- 'script/**'
- '.vscode/**'
pull_request:
Expand All @@ -20,7 +20,7 @@ on:
- '.github/**'
- '.gitignore'
- 'makefile'
- 'config.yaml.example'
- 'config.example.yaml'
- 'script/**'
- '.vscode/**'
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- '.github/**'
- '.gitignore'
- 'makefile'
- 'config.yaml.example'
- 'config.example.yaml'
- 'script/**'
- '.vscode/**'
workflow_call:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
${{ needs.setup.outputs.REPO_NAME }}-${{ needs.setup.outputs.TAG_NAME }}-sha256sum.txt
docker-compose.yml
Dockerfile
config.yaml.example
config.example.yaml
draft: true
generate_release_notes: true
env:
Expand Down
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ db/
logs/
logs/*.log

config.env
.env
.venv
env/
Expand All @@ -17,8 +16,8 @@ __debug**
node_modules/
robots.txt

/*.yaml

*.yaml
!*.example.yaml

build/
dist/
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ COPY --from=builder /app/gogin .
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

COPY ./config.yaml.example /app/config.yaml
COPY ./config.example.yaml /app/config.yaml

EXPOSE 8080

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ If you want to develop with this project, you can follow the steps below.
git clone [email protected]:funnyzak/go-gin.git && cd go-gin
```

2. Copy the `config.yaml.example` file to `config.yaml` and update the values.
2. Copy the `config.example.yaml` file to `config.yaml` and update the values.

```bash
cp config.yaml.example config.yaml
cp config.example.yaml config.yaml
```

3. Run the application.
Expand All @@ -48,7 +48,7 @@ You can fork this repository and add Secrets Keys: `DOCKER_USERNAME` and `DOCKER
├── cmd
│ ├── main.go // The main entry point for the application
│ └── srv // Server controller
├── config.yaml.example // An example configuration file for the project
├── config.example.yaml // An example configuration file for the project
├── docker-compose.yml // Defines services, networks and volumes for docker-compose
├── internal
│ ├── gconfig // Internal package for configuration
Expand Down Expand Up @@ -77,7 +77,7 @@ You can fork this repository and add Secrets Keys: `DOCKER_USERNAME` and `DOCKER

## Configuration

The configuration file is in the `config.yaml` file, you can copy the `config.yaml.example` file to `config.yaml` and update the values, the configuration file is as follows:
The configuration file is in the `config.yaml` file, you can copy the `config.example.yaml` file to `config.yaml` and update the values, the configuration file is as follows:

```yaml
server:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion script/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ GG_LATEST_VERSION_ZIP_NAME=""
GG_LATEST_VERSION_DOWNLOAD_URL=""

GG_RAW_URL="https://raw.githubusercontent.com/${GG_GITHUB_REPO_NAME}/main"
GG_CONFIG_SAMPLE_URL="${GG_RAW_URL}/config.yaml.example"
GG_CONFIG_SAMPLE_URL="${GG_RAW_URL}/config.example.yaml"

os_arch=""
[ -e /etc/os-release ] && cat /etc/os-release | grep -i "PRETTY_NAME" | grep -qi "alpine" && os_alpine='1'
Expand Down

0 comments on commit 06adeec

Please sign in to comment.