Skip to content

v0.2.0

v0.2.0 #8

Workflow file for this run

name: Build
on:
release:
types: [published]
env:
CARGO_TERM_COLOR: always
jobs:
release-build:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
submodules: true
- name: Set Docker image and tags
id: meta
uses: docker/metadata-action@v4
with:
images: |
alvaround/zokrates-api
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{version}},value=latest
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Build & push image
uses: docker/build-push-action@v3
with:
file: Dockerfile.prod
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}