diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index ddeeb11..8946708 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -6,12 +6,6 @@ on: pull_request: branches: [ "dev", "main" ] -env: - # Use docker.io for Docker Hub if empty - REGISTRY: docker.io - # github.repository as / - IMAGE_NAME: ${{ github.repository }} - jobs: build: @@ -35,31 +29,16 @@ jobs: - name: Check out the repo uses: actions/checkout@v4 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Log in to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v5 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - name: Build and push Docker image uses: docker/build-push-action@v5 with: context: . dockerfile: Dockerfile push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - - - name: image digest - run: echo ${{ steps.build-and-push.outputs.digest }} - - name: image digest - run: echo ${{ steps.build-and-push.outputs.digest }} \ No newline at end of file + tags: ${{ secrets.DOCKER_USERNAME }}/quizz:latest \ No newline at end of file