Skip to content

Commit

Permalink
coba dynamic env variabel, salah syntax ci cd
Browse files Browse the repository at this point in the history
  • Loading branch information
syafiqparadisam committed Nov 1, 2024
1 parent 9413d1b commit 4e4b2f7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login into docker hub
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}

- name: Build frontend app to dockerhub
env:
DOCKER_CONTENT_TRUST: 1
Expand All @@ -64,11 +70,6 @@ jobs:
VITE_PUBLIC_KEY=${{secrets.VITE_PUBLIC_KEY}}
VITE_TEMPLATE_ID=${{secrets.VITE_TEMPLATE_ID}}

- name: Login into docker hub
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}

- name: Push Docker image to Docker Hub
run: |
Expand Down

0 comments on commit 4e4b2f7

Please sign in to comment.