Skip to content

fix: add volume for docker run (#267) #19

fix: add volume for docker run (#267)

fix: add volume for docker run (#267) #19

name: Build and push website image
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
# A workflow run is made up of one or more jobs that can run sequentially or in parallel.
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker build and push
id: docker_build
uses: docker/build-push-action@v5
with:
file: Dockerfile
push: true
tags: bytebase/website
- name: Image digest
run: echo "Successfully pushed bytebase/website" ${{ steps.docker_build.outputs.digest }}