Skip to content

deleting previous cicd workflow #2

deleting previous cicd workflow

deleting previous cicd workflow #2

name: continuous deployment
on:
workflow_run:
workflows: ['build & push img']
types:
- completed
jobs:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
continuous-deployment:

Check failure on line 11 in .github/workflows/continuous_deployment.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/continuous_deployment.yaml

Invalid workflow file

You have an error in your yaml syntax on line 11
name: continuous deployment
runs-on: self-hosted
# runs-on: ubuntu-latest
needs: build-nd-push-docker-image
steps:
- name: pull latest image from docker hub
run: |
docker image pull ${{ secrets.DOCKER_USERNAME }}/wineqcicdaws:latest
- name: Print docker images # for debugging
run: docker images
- name: Delete Previous Container
run: |
docker rm -f awscicd || true
- name: Run Docker Image to Serve Users
run: |
docker run -d -p 8082:8000 -ti --name awscicd ${{ secrets.DOCKER_USERNAME }}/wineqcicdaws:latest