🐳 Add Swagger docs cache save step
This commit is contained in:
@@ -70,6 +70,27 @@ jobs:
|
|||||||
gitea.arcodange.lab/arcodange/dance-lessons-coach-build-cache:${DEPS_HASH}
|
gitea.arcodange.lab/arcodange/dance-lessons-coach-build-cache:${DEPS_HASH}
|
||||||
go generate ./pkg/server
|
go generate ./pkg/server
|
||||||
|
|
||||||
|
- name: Save Swagger Docs Cache
|
||||||
|
if: steps.cache-swagger-restore.outputs.cache-hit != 'true'
|
||||||
|
uses: actions/cache/save@v5
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
pkg/server/docs/docs.go
|
||||||
|
pkg/server/docs/swagger.json
|
||||||
|
pkg/server/docs/swagger.yaml
|
||||||
|
key: ${{ steps.cache-swagger-restore.outputs.cache-primary-key }}
|
||||||
|
|
||||||
|
- name: Save Swagger Docs Cache
|
||||||
|
if: steps.cache-swagger-restore.outputs.cache-hit != 'true'
|
||||||
|
id: cache-swagger-save
|
||||||
|
uses: actions/cache/save@v5
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
pkg/server/docs/docs.go
|
||||||
|
pkg/server/docs/swagger.json
|
||||||
|
pkg/server/docs/swagger.yaml
|
||||||
|
key: ${{ steps.cache-swagger-restore.outputs.cache-primary-key }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
run: |
|
run: |
|
||||||
source VERSION
|
source VERSION
|
||||||
|
|||||||
Reference in New Issue
Block a user