Skip to content

Build Docker image

Build Docker image #3

Workflow file for this run

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"