From 4e4b2f7743c56563601181eee3b3a9f512d104e5 Mon Sep 17 00:00:00 2001 From: syafiqparadisam Date: Fri, 1 Nov 2024 16:13:45 +0700 Subject: [PATCH] coba dynamic env variabel, salah syntax ci cd --- .github/workflows/cicd.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 3e9c560..7f75b9c 100755 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -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 @@ -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: |