-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from IgorPolyakov/main
CI\CD, migrate to pSQL, user & game work now
- Loading branch information
Showing
29 changed files
with
757 additions
and
598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
dckr_mysql | ||
sql | ||
Dockerfile | ||
docker-compose.yml | ||
docker-compose.yml | ||
pg-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: CI/CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
# раскоментить когда будет доступ до DockerHub | ||
# build: | ||
# name: Build and Push | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - name: Check out code | ||
# uses: actions/checkout@v2 | ||
|
||
# - name: Set up Go | ||
# uses: actions/setup-go@v2 | ||
# with: | ||
# go-version: '1.22' | ||
|
||
# - name: Build Docker Image | ||
# run: docker build . -t sea-kg/ctf01d:latest | ||
|
||
# - name: Log in to DockerHub | ||
# uses: docker/login-action@v1 | ||
# with: | ||
# username: ${{ secrets.DOCKER_USERNAME }} | ||
# password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
# - name: Push Docker Image | ||
# run: docker push sea-kg/ctf01d:latest | ||
check-dependencies: | ||
name: Check dependencies with nancy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
- name: WriteGoList | ||
run: cd src && go list -json -m all > ../go.list | ||
- name: Nancy | ||
uses: sonatype-nexus-community/nancy-github-action@main | ||
continue-on-error: true | ||
lint-code: | ||
name: Lint with golangci-lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
- name: golangci-lint | ||
uses: reviewdog/action-golangci-lint@v2 | ||
with: | ||
go_version: 1.22 | ||
workdir: ./src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.