-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 1.06 KB
/
docker-build-push-verq-2.1.yml
File metadata and controls
41 lines (33 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
name: CI/CD Image VerQ 2.1
on:
workflow_dispatch:
jobs:
nightly-build-push-2_0:
name: Nightly Build and Push Docker Image 2.1
runs-on: ubuntu-latest
steps:
# Checkout code
- name: Checkout code
uses: actions/checkout@v2
# Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
# Install Make if needed
- name: Set up Make
run: sudo apt-get install -y make
# Log in to GHCR
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_PAT }}
# Build Docker image for 2.1
- name: Build Docker image for 2.1
run: |
make build 2.1
docker tag casper-nctl-2-docker-2.1 ghcr.io/verqhealth/casper-nctl-2-docker:2.1
# Push Docker image 2.1 to GHCR
- name: Push Docker image 2.1 to GHCR
run: |
docker push ghcr.io/verqhealth/casper-nctl-2-docker:2.1