feat: initial commit
Deploy / build (pull_request) Has been cancelled
Build / build (pull_request) Failing after 35s

- add Makefile
- add gitea workflows
- add Dockerfile
This commit is contained in:
2024-09-08 00:15:21 +10:00
parent 0d3e7553ef
commit 213700bffa
5 changed files with 120 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
name: Build
on:
pull_request:
jobs:
build:
runs-on: almalinux-8
container:
image: docker:dind
options: --privileged
steps:
- name: Set up environment
run: |
apk add --no-cache make bash git nodejs
- name: Checkout code
uses: actions/checkout@v3
- name: Build Docker Image
run: |
make build
+37
View File
@@ -0,0 +1,37 @@
name: Deploy
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: almalinux-8
container:
image: docker:dind
options: --privileged
steps:
- name: Set up environment
run: |
apk add --no-cache make bash git nodejs
- name: Checkout code
uses: actions/checkout@v3
- name: Build Docker Image
run: |
make build
- name: Log in to Docker
env:
UPLOAD_USER: ${{ secrets.UPLOAD_USER }}
UPLOAD_PASS: ${{ secrets.UPLOAD_PASS }}
run: |
echo "$UPLOAD_PASS" | docker login --username=$UPLOAD_USER --password-stdin git.query.consul
- name: Push Docker Image
run: |
make push