Build Docker image #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Docker image | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- name: Install dependencies | |
run: pnpm i | |
- name: Prepare build | |
run: pnpm run prepare:build | |
- name: Build docker image | |
run: "docker build . -f ./Dockerfile -t ${{ secrets.DOCKER_REPO_URL }}/zwoo/docs:latest" | |
- name: Log into JFrog | |
run: "docker login ${{ secrets.DOCKER_REPO_URL }} -p ${{ secrets.DOCKER_REPO_PASS }} -u ${{ secrets.DOCKER_REPO_USER }}" | |
- name: Push image | |
run: "docker push ${{ secrets.DOCKER_REPO_URL }}/zwoo/docs:latest" |