chore: update

This commit is contained in:
Xor290
2026-08-08 18:27:27 +02:00
parent ef303951a3
commit 000ed75313
2 changed files with 9 additions and 9 deletions
+6 -5
View File
@@ -31,31 +31,32 @@ jobs:
- name: Vet - name: Vet
run: go vet ./... run: go vet ./...
continue-on-error: true
- name: Test
run: go test ./...
- name: Build - name: Build
run: go build ./... run: go build ./...
- name: Install & run gosec - name: Install & run gosec
working-directory: backend/gestion
continue-on-error: true continue-on-error: true
run: | run: |
go install github.com/securego/gosec/v2/cmd/gosec@latest go install github.com/securego/gosec/v2/cmd/gosec@latest
gosec ./... gosec ./...
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx - name: Set up Docker Buildx
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub - name: Log in to Docker Hub
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build & push api - name: Build & push api
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
context: ./control-plane/api context: ./control-plane/api
+3 -4
View File
@@ -38,24 +38,23 @@ jobs:
- name: Test - name: Test
run: npm test run: npm test
continue-on-error: true
- name: Build - name: Build
run: npm run build run: npm run build
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx - name: Set up Docker Buildx
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub - name: Log in to Docker Hub
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build & push web - name: Build & push web
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
context: ./web context: ./web