Merge pull request #69 from FinThunderstorm/fix/staging-deployment #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |