Skip to content

Merge pull request #69 from FinThunderstorm/fix/staging-deployment #4

Merge pull request #69 from FinThunderstorm/fix/staging-deployment

Merge pull request #69 from FinThunderstorm/fix/staging-deployment #4

name: Build Docker image
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
# Use docker.io for Docker Hub if empty
REGISTRY: registry.tko-aly.fi
IMAGE_NAME: tarpisto
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/[email protected]
# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata for worker
id: meta
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=schedule
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=sha
- name: Build Docker image
run: ./scripts/build-image.sh
env:
DOCKER_INFO: ${{ steps.meta.outputs.bake-file }}