-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 990 Bytes
/
build.yaml
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
name: Build and Push Docker Images
on:
push:
tags:
- '*'
workflow_dispatch:
env:
IMAGE_NAME: humitifier
DOCKERFILE_DEMO_PATH: ./Dockerfile.demo
DOCKERFILE_PATH: ./Dockerfile
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Compile CSS from SCSS files
uses: gha-utilities/[email protected]
with:
source: web/style.scss
destination: static/out.css
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push main image
uses: docker/build-push-action@v4
with:
context: .
file: ${{ env.DOCKERFILE_PATH }}
push: true
tags: ghcr.io/centrefordigitalhumanities/humitifier/${{ env.IMAGE_NAME }}:latest