fix cd
This commit is contained in:
8
.github/workflows/cd.yml
vendored
8
.github/workflows/cd.yml
vendored
@@ -5,9 +5,11 @@ on:
|
||||
workflows: ["Check"]
|
||||
types:
|
||||
- completed
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
if: ${{ github.event_name == 'workflow_dispatch' || (github.event.workflow_run.conclusion == 'success' && startsWith(github.ref, 'refs/tags/v')) }}
|
||||
runs-on: ubuntu-latest
|
||||
environment: battleship
|
||||
steps:
|
||||
@@ -25,4 +27,6 @@ jobs:
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: user/app:latest
|
||||
tags: ${{ secrets.DOCKER_IMAGE_PATH }}:latest
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
Reference in New Issue
Block a user