-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.11 KB
/
release.yml
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
46
name: Release and Deploy
on:
push:
branches:
- main
env:
DEPLOYMENT_VERSION: ${{ github.sha }}
jobs:
release:
name: Release
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [ '16.x' ]
os: [ 'ubuntu-latest' ]
steps:
- name: Check out the repository
uses: actions/checkout@v2
- name: Use node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
npm ci
- name: Run roboter
run: |
npx roboter
- name: Log in to the GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: goloroden
password: ${{ secrets.GH_TOKEN_ADMIN }}
- name: Build and push the docker image
uses: docker/build-push-action@v2
with:
push: true
file: Dockerfile
tags: |
ghcr.io/thenativeweb/tlwe2021-nodejs:${{ github.sha }}
ghcr.io/thenativeweb/tlwe2021-nodejs:latest