-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.06 KB
/
Copy pathnodejs.yml
File metadata and controls
42 lines (35 loc) · 1.06 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
name: Node.js CI
on:
push:
branches: [ master, docker ]
pull_request:
branches: [ master, docker ]
jobs:
docker_build_and_push:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.x ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Login to GitLab
uses: docker/login-action@v1
with:
registry: ${{ secrets.GITLAB_SERVER }}
username: ${{ secrets.GITLAB_USER }}
password: ${{ secrets.GITLAB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@f3c886e26b64d7e5ef5ff5f574efc88b317b8451
with:
images: gitlab-registry.enecuum.com/reg/node-corp-site/${{ github.event.repository.name }}
tags: type=sha,prefix={{branch}}-
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}