Skip to content

Merge pull request #4 from unipept/feature/migrate-to-rust-pipeline #36

Merge pull request #4 from unipept/feature/migrate-to-rust-pipeline

Merge pull request #4 from unipept/feature/migrate-to-rust-pipeline #36

# This is a basic workflow to help you get started with Actions
name: Build Web Image
# Controls when the workflow will run
on:
workflow_dispatch:
push:
branches:
- 'main'
tags:
- 'v*.*.*'
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: metadata
uses: docker/metadata-action@v3
with:
images: |
ghcr.io/unipept/unipept-web
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64
push: true
file: 'unipept-web/Dockerfile'
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}