30 lines
732 B
YAML
30 lines
732 B
YAML
name: Build and Deploy
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
paths-ignore:
|
|
- "**.md"
|
|
|
|
jobs:
|
|
build-docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Fixing CGroups
|
|
run: |
|
|
sudo ls /etc
|
|
# sudo sed -E -i 's/#(rc_cgroup_mode).*/\1="unified"/' /etc/rc.conf
|
|
# sudo service cgroups restart
|
|
- 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
|
|
- name: Inspect
|
|
run: |
|
|
docker image inspect nerdcult_frontend:latest |