diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 6ea803d..7fe5781 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -3,22 +3,19 @@ name: Build and Push Docker Image on: workflow_call: inputs: - dockerhub-username: - description: 'DockerHub username' - required: true - type: string - dockerhub-pat: - description: 'DockerHub personal access token' - required: true - type: string dockerfile: description: 'Path to Dockerfile' - required: true + default: 'Dockerfile' type: string image-name: - description: 'Docker image name' - required: true + description: 'Name of Docker Image' type: string + required: true + secrets: + dockerhub-username: + required: true + dockerhub-pat: + required: true jobs: build-and-push: @@ -69,8 +66,8 @@ jobs: - name: Login to Docker Hub uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PAT }} + username: ${{ secrets.dockerhub-username }} + password: ${{ secrets.dockerhub-pat }} - name: Set up QEMU uses: docker/setup-qemu-action@v3