frontend/.gitea/workflows/deploy.yml

30 lines
732 B
YAML
Raw Normal View History

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-12 17:56:23 +00:00
runs-on: ubuntu-latest
2023-10-11 21:12:37 +00:00
steps:
- name: Checkout
uses: actions/checkout@v4
2023-10-12 17:56:23 +00:00
- name: Fixing CGroups
run: |
2023-10-12 17:58:05 +00:00
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
2023-10-11 21:12:37 +00:00
- name: Inspect
run: |
docker image inspect nerdcult_frontend:latest