From cde0896e8270767f0dbabc537d5cf806f05a5cda Mon Sep 17 00:00:00 2001 From: Calcium-Ion <61247483+Calcium-Ion@users.noreply.github.com> Date: Tue, 7 Nov 2023 11:26:05 -0600 Subject: [PATCH] Create docker-image-private.yml --- .github/workflows/docker-image-private.yml | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/docker-image-private.yml diff --git a/.github/workflows/docker-image-private.yml b/.github/workflows/docker-image-private.yml new file mode 100644 index 0000000..c40eae3 --- /dev/null +++ b/.github/workflows/docker-image-private.yml @@ -0,0 +1,32 @@ +name: Docker Image CI + +on: + push: + branches: [ "private" ] + pull_request: + branches: [ "private" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + 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 + uses: docker/build-push-action@v5.0.0 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}