- add Makefile - add gitea workflows - add Dockerfile - pass through trusted ca certificates
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user