Skip to content

Commit

Permalink
Github actions release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Keskimaki committed Jun 21, 2022
1 parent 04ce20a commit 8fc8f66
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 112 deletions.
112 changes: 0 additions & 112 deletions .circleci/config.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Release to production

on:
push:
branches:
- master

jobs:
release-frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Login to dockerhub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker images
uses: docker/build-push-action@v2
with:
context: .
tags: toska/labtool:test
push: true
build-args: |
NODE_ENV=production
release-backend:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Login to dockerhub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker images
uses: docker/build-push-action@v2
with:
context: ./backend
tags: toska/labtool-backend:test
push: true
build-args: |
NODE_ENV=production

0 comments on commit 8fc8f66

Please sign in to comment.