Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 14 additions & 24 deletions .github/workflows/build_production.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,30 @@
name: Build and push docker image (production)

on:
push:
branches:
- main
release:
types: [published]

jobs:
build-and-push:
build-and-store:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v4
-
name: Build frontend
- name: Build frontend
run: |
npm --prefix ./frontend ci
npm --prefix ./frontend run build
-
name: Build backend
- name: Build backend
run: |
npm --prefix ./backend ci
npm --prefix ./backend run build
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v6
- name: Build and and export
uses: redhat-actions/push-to-registry@v2
with:
context: .
push: true
tags: arttkan/finlex-lukija:production
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: quay.io/toska
username: toska+github
password: ${{ secrets.QUAY_IO_TOKEN }}

Loading