isl-api/.forgejo/workflows/demo.yaml

28 lines
677 B
YAML
Raw Normal View History

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
container:
2024-01-31 23:00:41 -05:00
image: node:21-alpine
2024-01-28 19:23:49 -05:00
steps:
- 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
- name: Login to docker repo
uses: docker/login-action@v3
with:
registry: "forgejo.merr.is"
username: ${{ github.actor }}
password: ${{ secrets.actions_token }}