diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 7dde248..20b4da2 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -13,21 +13,25 @@ jobs: - name: Docker meta id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: tigerblue77/dell_idrac_fan_controller tags: type=raw,value=latest - - name: Login to DockerHub - uses: docker/login-action@v1 + - name: Login to Docker Hub + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Build and push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: context: . + file: ./Dockerfile push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}