diff options
| author | Ritesh Ghosh <[email protected]> | 2023-08-19 22:46:27 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2023-08-19 22:46:27 +0530 |
| commit | dcedec3d53ccf8551320937d6cb55996995c4de5 (patch) | |
| tree | 20fed865e1694bca88983aee1ad563ac6d5218cb /.github/workflows | |
| parent | 6bf6f8ff690a84543ff695140526c842d8b7600a (diff) | |
| download | aniwatch-api-dcedec3d53ccf8551320937d6cb55996995c4de5.tar.xz aniwatch-api-dcedec3d53ccf8551320937d6cb55996995c4de5.zip | |
ci: added docker build workflow
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/docker-build.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml new file mode 100644 index 0000000..3379e73 --- /dev/null +++ b/.github/workflows/docker-build.yml @@ -0,0 +1,41 @@ +name: "Docker Build" + +on: + release: + types: [published] + +jobs: + build_docker_image: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Setup NodeJS + uses: actions/setup-node@v3 + + - name: Install dependencies + run: npm install + + - name: Build files + run: npm run build + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ghoshritesh12 + password: ${{ secrets.GHCR_DOCKER_PWD }} + + - name: Build and push docker image + uses: docker/build-push-action@v4 + with: + push: true + tags: ${{ github.event.release.tag_name }} |
