-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1 KB
/
build-release-candidate.yml
File metadata and controls
46 lines (37 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Build Development Docker Image
on:
push:
branches: [ development ]
jobs:
run-unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '11'
- name: 'Install dependencies'
run: npm ci
- name: 'Run tests'
run: npm run test
build-docker-image:
runs-on: ubuntu-latest
needs: run-unit-tests
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
repository: ${{github.repository}}
username: ${{github.repository_owner}}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: ghcr.io/coderscommunity/http-websocket-server:rc