Skip to content

ci: update workflow

ci: update workflow #8

Workflow file for this run

on:
push:
branches:
- 'main'
- '1.x'
tags:
- 'v*'
name: Build Docker image
jobs:
build:
name: Build Docker image
uses: code4romania/.github/.github/workflows/build-push-image.yml@main
with:
images: code4romania/votong
dockerfile: ./docker/web/Dockerfile
tags: |
type=edge
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
secrets:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
token: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}