-
Notifications
You must be signed in to change notification settings - Fork 12
39 lines (38 loc) · 1.01 KB
/
deploy-image.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
name: Deploy docker image
on:
push:
branches:
- main
tags:
- '*'
jobs:
build-and-deploy:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-dotnet@v2
with:
dotnet-version: '7.0.x'
- run: make build-backend
name: Build
- run: make test-backend
name: Test
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: make prepare-image
name: Prepares backend & frontend into an image
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@main
env:
GIT_HASH: ${{ github.sha }}
with:
name: softwarepark/contexture
workdir: artifacts/image
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: ../backend/Dockerfile
buildargs: GIT_HASH
tag_semver: true