Skip to content

Commit

Permalink
job level concurency
Browse files Browse the repository at this point in the history
  • Loading branch information
arushsoel authored Jul 19, 2024
1 parent 4c034d6 commit c361118
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/variable-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ jobs:
run: echo docker push $CONTAINER_REGISTRY/${{ vars.DOCKERUSERNAME }}/$IMAGENAME:latest

Deploy:
needs: Docker
concurrency:
group: production-deployment
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Docker run
run: |
docker run -d -p 8080:80 $CONTAINER_REGISTRY/${{ vars.DOCKERUSERNAME }}/$IMAGENAME:latest
echo docker run -d -p 8080:80 $CONTAINER_REGISTRY/${{ vars.DOCKERUSERNAME }}/$IMAGENAME:latest
sleep 600s

0 comments on commit c361118

Please sign in to comment.