Skip to content

Commit

Permalink
chore: Add docker image generation job (#13954)
Browse files Browse the repository at this point in the history
  • Loading branch information
atomrc committed Oct 24, 2022
1 parent b1fe0e2 commit 21c5f59
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/create_docker_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Create Docker image

on:
workflow_dispatch:
tag:
description: 'tagname for the Docker image'
required: true
type: string

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
test_build_deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Use latest Node.js v16
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Yarn cache
uses: c-hive/gha-yarn-cache@v2.1.0

- name: Install JS dependencies
run: yarn --immutable

- name: Test
run: yarn test --coverage --coverage-reporters=lcov --detectOpenHandles=false

- name: Build
run: yarn build:prod

- name: Push Docker image
env:
DOCKER_PASSWORD: ${{secrets.WEBTEAM_QUAY_PASSWORD}}
DOCKER_USERNAME: ${{secrets.WEBTEAM_QUAY_USERNAME}}
run: yarn docker '' "${{input.tag}}"

0 comments on commit 21c5f59

Please sign in to comment.