Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
vladi14 committed Nov 11, 2023
1 parent 17895ba commit 34955a0
Showing 1 changed file with 8 additions and 35 deletions.
43 changes: 8 additions & 35 deletions .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,39 +67,12 @@ jobs:
push: true
tags: vladipiko/app:latest

# - name: Push Docker Image to Docker Hub
# run: |
# docker login -u ${{ secrets.DOCKER_UNAME }} -p ${{ secrets.DOCKER_KEY }}
# docker push my-docker-image:1.0.1



# publish:
# runs-on: ubuntu-latest
# needs: build

# steps:
# - name: Checkout Code
# uses: actions/checkout@v4

# - name: Build Docker Image
# run: |
# ls -l
# docker build -t my-docker-image:${{ github.run_number }} -f ${{ github.workspace }}/Dockerfile .
# docker tag my-docker-image:${{ github.run_number }} my-docker-image:$APP_VERSION

# - name: Push Docker Image to Docker Hub
# run: |
# echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
# docker push my-docker-image:${{ github.run_number }}
# docker push my-docker-image:1.0.1
# docker push my-docker-image:latest

# deploy:
# runs-on: ubuntu-latest
# needs: publish
# steps:
# - name: Download and Run Docker Image
# run: |
# docker pull my-docker-image:1.0.1
# docker run --rm -it -p 8080:8080 my-docker-image:1.0.1
deploy:
runs-on: ubuntu-latest
needs: publish
steps:
- name: Download and Run Docker Image
run: |
docker pull app:latest
docker run --rm -it -p 8080:8080 app:latest

0 comments on commit 34955a0

Please sign in to comment.