Skip to content

Commit

Permalink
Update closure-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nivi-sco88 committed Jan 12, 2024
1 parent aa4c24f commit 7cb5c80
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/closure-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ jobs:
build:
runs-on: ubuntu-latest

env:
DOCKER_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}

steps:

- name: Checkout code
Expand All @@ -22,11 +18,11 @@ jobs:
run: |
docker build -t web-app:latest .
- name: Login to DockerHub
run: |
echo "$DOCKER_USERNAME"
echo `${{ secrets.DOCKER_HUB_TOKEN }}`
echo `${{ secrets.DOCKER_HUB_TOKEN }}` | docker login --username "$DOCKER_USERNAME" --password-stdin
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Push docker image
run: docker push web-app:latest
Expand Down

0 comments on commit 7cb5c80

Please sign in to comment.