silverbullet/.github/workflows/docker.yml

40 lines
863 B
YAML
Raw Permalink Normal View History

name: Docker
on:
push:
tags:
- '*'
jobs:
docker-build-push-release:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@d4873ceeec10de6275fecd1f94b6985369d40231
with:
deno-version: v1.33
- name: Run bundle build
run: |
deno task build
deno task compile
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: |
zefhemel/silverbullet:latest
2023-05-07 16:04:36 +08:00
zefhemel/silverbullet:${{ github.ref_name }}