This commit is contained in:
sparshg
2024-09-24 02:11:36 +05:30
parent a0eec106e4
commit 7992a13821

View File

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