2023-10-11 21:12:37 +00:00
|
|
|
name: Build and Deploy
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "master"
|
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
|
|
|
|
2023-10-11 21:40:31 +00:00
|
|
|
jobs:
|
|
|
|
build-docker:
|
2023-10-11 21:12:37 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-11 22:31:54 +00:00
|
|
|
- name: Fixing Environment
|
|
|
|
run: |
|
2023-10-11 22:33:14 +00:00
|
|
|
echo "rc_cgroup_mode=\"unified\"" >> /etc/rc.conf
|
2023-10-11 22:13:12 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Build
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
load: true
|
|
|
|
tags: nerdcult_frontend:latest
|
2023-10-11 21:12:37 +00:00
|
|
|
- name: Inspect
|
|
|
|
run: |
|
|
|
|
docker image inspect nerdcult_frontend:latest
|