From 3906bf50528b7dd54a78fef9a5b1e75de1037ebf Mon Sep 17 00:00:00 2001 From: Calcium-Ion <61247483+Calcium-Ion@users.noreply.github.com> Date: Mon, 30 Oct 2023 11:57:40 -0500 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 39a1679..7b6d3fd 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -14,5 +14,19 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: docker/login-action@v3.0.0 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v3 + with: + images: calciumion/neko-api - name: Build the Docker image - run: docker build . --file Dockerfile --tag calciumion/neko-api:$(date +%s) + uses: docker/build-push-action@v5.0.0 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}