Some checks failed
Build / build (pull_request) Failing after 5s
- add Makefile - add gitea workflows - add Dockerfile - pass through trusted ca certificates
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
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
|
|
- /etc/pki/tls/certs/ca-bundle.crt:/etc/docker/certs.d/git.query.consul/ca.crt
|
|
|
|
steps:
|
|
- name: Set up environment
|
|
run: |
|
|
apk add --no-cache make bash git nodejs
|
|
cp /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
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
|