2024-01-28 19:23:49 -05:00
|
|
|
---
|
2024-01-31 14:51:42 -05:00
|
|
|
name: build
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
branches:
|
|
|
|
|
- main
|
2024-01-28 19:23:49 -05:00
|
|
|
jobs:
|
2024-01-31 14:51:42 -05:00
|
|
|
build:
|
|
|
|
|
name: Build and push docker image
|
2024-01-31 22:31:50 -05:00
|
|
|
runs-on: docker
|
2024-01-31 22:49:35 -05:00
|
|
|
container:
|
|
|
|
|
image: node:21-bookworm
|
2024-01-28 19:23:49 -05:00
|
|
|
steps:
|
2024-01-31 14:51:42 -05:00
|
|
|
- name: Check out the repo
|
|
|
|
|
uses: actions/checkout@v4
|
2024-01-31 22:56:02 -05:00
|
|
|
- name: Install docker
|
|
|
|
|
run: |
|
2024-01-31 22:56:39 -05:00
|
|
|
apt-get update
|
2024-01-31 22:57:32 -05:00
|
|
|
apt-get install -y docker
|
2024-01-31 15:51:54 -05:00
|
|
|
- name: Login to docker repo
|
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
|
with:
|
|
|
|
|
registry: "forgejo.local.merr.is:3000"
|
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
|
password: ${{ secrets.actions_token }}
|