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:
|
2024-01-31 23:00:41 -05:00
|
|
|
image: node:21-alpine
|
2024-01-28 19:23:49 -05:00
|
|
|
steps:
|
2024-01-31 22:56:02 -05:00
|
|
|
- name: Install docker
|
2024-01-31 23:00:41 -05:00
|
|
|
shell: /bin/ash -e {0}
|
2024-02-01 22:47:00 -05:00
|
|
|
run: apk add --update docker git
|
2024-01-31 23:06:50 -05:00
|
|
|
- name: Print Some Debugging Info
|
2024-01-31 23:09:12 -05:00
|
|
|
shell: /bin/ash -e {0}
|
2024-02-01 09:42:48 -05:00
|
|
|
run: echo ${{ github.repository }}
|
2024-01-31 23:01:18 -05:00
|
|
|
- name: Check out the repo
|
|
|
|
|
uses: actions/checkout@v4
|
2024-01-31 15:51:54 -05:00
|
|
|
- name: Login to docker repo
|
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
|
with:
|
2024-02-01 23:08:39 -05:00
|
|
|
registry: "forgejo.merr.is"
|
2024-01-31 15:51:54 -05:00
|
|
|
username: ${{ github.actor }}
|
|
|
|
|
password: ${{ secrets.actions_token }}
|