feat: initial commit
Build / build (pull_request) Failing after 33s

- add Makefile
- add gitea workflows
- add Dockerfile
- pass through trusted ca certificates
This commit is contained in:
2024-09-08 00:15:21 +10:00
parent 0d3e7553ef
commit baf2b405aa
5 changed files with 127 additions and 2 deletions
+27
View File
@@ -0,0 +1,27 @@
name: Build
on:
pull_request:
jobs:
build:
runs-on: almalinux-8
container:
image: docker:dind
options: --privileged
volumes:
- /etc/pki/tls/certs/ca-bundle.crt:/etc/pki/tls/certs/ca-bundle.crt
- /etc/pki/tls/certs/ca-bundle.crt:/etc/ssl/certs/ca-certificates.crt
steps:
- name: Set up environment
run: |
apk add --no-cache make bash git nodejs
update-ca-certificates
- name: Checkout code
uses: actions/checkout@v3
- name: Build Docker Image
run: |
make build
+40
View File
@@ -0,0 +1,40 @@
name: Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: almalinux-8
container:
image: docker:dind
options: --privileged
volumes:
- /etc/pki/tls/certs/ca-bundle.crt:/etc/pki/tls/certs/ca-bundle.crt
- /etc/pki/tls/certs/ca-bundle.crt:/etc/ssl/certs/ca-certificates.crt
steps:
- name: Set up environment
run: |
apk add --no-cache make bash git nodejs
update-ca-certificates
- 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