bf1b08d246256d33359a85c640e1325d6267477c
- Author
- TheEdgeOfRage <git@theedgeofrage.com>
- Committer
- TheEdgeOfRage <git@theedgeofrage.com>
- Date
Message
Remove github workflow
Diff
1diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
2deleted file mode 100644
3index 02047a65b03b30356365acf2451db6ac49000f14..0000000000000000000000000000000000000000
4--- a/.github/workflows/ci.yaml
5+++ /dev/null
6@@ -1,77 +0,0 @@
7----
8-name: "Go CI"
9-
10-"on":
11- push:
12- branches:
13- - main
14- pull_request:
15-
16-jobs:
17- test:
18- name: "Run linter and tests"
19- runs-on: ubuntu-latest
20- timeout-minutes: 15
21- services:
22- postgres:
23- image: postgres:18
24- env:
25- POSTGRES_PASSWORD: postgres
26- options: >-
27- --health-cmd "pg_isready -U postgres"
28- --health-interval 5s
29- --health-timeout 2s
30- --health-retries 5
31-
32- steps:
33- - uses: actions/checkout@v6
34-
35- - uses: actions/setup-go@v6
36- with:
37- go-version-file: "go.mod"
38- check-latest: true
39- cache: true
40-
41- - name: go vet
42- run: go vet ./...
43-
44- - name: Read golangci-lint version
45- run: echo "GOLANGCI_LINT_VERSION=$(cat .golangci-lint-version)" >> "$GITHUB_ENV"
46-
47- - name: golangci-lint
48- uses: golangci/golangci-lint-action@v9
49- with:
50- version: ${{ env.GOLANGCI_LINT_VERSION }}
51-
52- - name: govulncheck
53- run: make govulncheck
54-
55- - name: Tests
56- env:
57- DB_URI: postgresql://postgres:postgres@postgres:5432/postgres?sslmode=disable
58- run: |-
59- make migrate
60- make test
61-
62- - name: Set up Docker Buildx
63- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
64- uses: docker/setup-buildx-action@v4
65- with:
66- version: latest
67-
68- - name: Login to Docker Hub
69- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
70- uses: docker/login-action@v4
71- with:
72- username: ${{ secrets.DOCKER_USERNAME }}
73- password: ${{ secrets.DOCKER_PASSWORD }}
74-
75- - name: Build and push API image
76- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
77- uses: docker/build-push-action@v7
78- with:
79- push: true
80- tags: theedgeofrage/ytrssil:api
81- target: api
82- cache-from: type=gha
83- cache-to: type=gha,mode=max