Skip to content

Build Urnik Docker Image #77

Build Urnik Docker Image

Build Urnik Docker Image #77

Workflow file for this run

name: Build Urnik Docker Image
on:
push:
branches:
- master
tags:
- "[0-9]+.[0-9]+.[0-9]+*"
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate tags
id: meta
uses: docker/metadata-action@v4
with:
images: ulfri/timetable
flavor: |
latest=true
tags: |
type=pep440,pattern={{version}}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ steps.meta.outputs.tags }}