🐛 fix: restore proper job dependencies and remove Swagger steps from docker-push
This commit is contained in:
@@ -333,7 +333,7 @@ jobs:
|
|||||||
|
|
||||||
docker-push:
|
docker-push:
|
||||||
name: Docker Push
|
name: Docker Push
|
||||||
needs: build-cache
|
needs: [build-cache, ci-pipeline]
|
||||||
runs-on: ubuntu-latest-ca
|
runs-on: ubuntu-latest-ca
|
||||||
# Run conditions: standard checks + main branch + feature branch + docker_only override
|
# Run conditions: standard checks + main branch + feature branch + docker_only override
|
||||||
if: "!contains(github.event.head_commit.message, '[skip ci]') && github.actor != 'ci-bot' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/feature/move-docker-job' || github.event.inputs.docker_only == 'true')"
|
if: "!contains(github.event.head_commit.message, '[skip ci]') && github.actor != 'ci-bot' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/feature/move-docker-job' || github.event.inputs.docker_only == 'true')"
|
||||||
@@ -342,22 +342,6 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Restore Swagger Docs Cache
|
|
||||||
id: cache-swagger-restore
|
|
||||||
uses: actions/cache/restore@v5
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
pkg/server/docs/docs.go
|
|
||||||
pkg/server/docs/swagger.json
|
|
||||||
pkg/server/docs/swagger.yaml
|
|
||||||
key: swagger-docs-${{ hashFiles('cmd/server/main.go', 'pkg/greet/*.go', 'pkg/server/*.go', 'go.mod') }}
|
|
||||||
restore-keys: |
|
|
||||||
swagger-docs-
|
|
||||||
|
|
||||||
- name: Generate Swagger Docs (if not cached)
|
|
||||||
if: steps.cache-swagger-restore.outputs.cache-hit != 'true' || github.event.inputs.skip_ci == 'true'
|
|
||||||
run: go generate ./pkg/server
|
|
||||||
|
|
||||||
- name: Login to Gitea Container Registry
|
- name: Login to Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user