Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/user grouping #223

Closed
wants to merge 15 commits into from
Closed
Show file tree
Hide file tree
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
12 changes: 6 additions & 6 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
##
# Runs builds on GitHub pull requests to test that they should be working fine.
# Actual builds and deployments are run in Azure DevOps.
##
name: Test builds
on: pull_request
on:
pull_request:
jobs:
test-client:
runs-on: ubuntu-latest
defaults:
run:
working-directory: client
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
Expand All @@ -25,8 +25,8 @@ jobs:
run:
working-directory: server
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Production deployment

on:
push:
branches: [main]
workflow_dispatch:

env:
IMAGE_NAME: ${{ secrets.REGISTRY_ADDRESS }}/vuorovaikutusalusta

jobs:
deploy:
name: Deploy to production
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY_ADDRESS }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build
uses: docker/build-push-action@v5
with:
push: true
cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:latest
cache-to: type=inline
tags: ${{ env.IMAGE_NAME }}:latest
53 changes: 0 additions & 53 deletions azure-pipelines/production.yml

This file was deleted.

53 changes: 0 additions & 53 deletions azure-pipelines/test.yml

This file was deleted.

4 changes: 2 additions & 2 deletions client/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
* 'preset-react' provides plugins to transform JSX syntax etc.
*/

module.exports = {
"presets": [ "@babel/preset-env", "@babel/preset-react" ]
module.exports = {
presets: ['@babel/preset-env', '@babel/preset-react'],
};
Loading
Loading