Compare commits

..

1 Commits

Author SHA1 Message Date
213700bffa feat: initial commit
Some checks failed
Deploy / build (pull_request) Has been cancelled
Build / build (pull_request) Failing after 35s
- add Makefile
- add gitea workflows
- add Dockerfile
2024-09-08 00:56:06 +10:00
2 changed files with 42 additions and 45 deletions

View File

@ -1,12 +1,7 @@
name: build-docker-image
name: Build
on:
push:
branches:
- master
pull_request:
branches:
- '*'
jobs:
build:
@ -18,46 +13,11 @@ jobs:
steps:
- name: Set up environment
run: |
apk add --no-cache make bash git
apk add --no-cache make bash git nodejs
- name: Checkout code
uses: actions/checkout@v3
- name: Build Docker Image
run: |
make build
push:
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
runs-on: almalinux-8
container:
image: docker:dind
options: --privileged
steps:
- name: Set up environment
run: |
apk add --no-cache make bash git
- 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
clean:
runs-on: almalinux-8
container:
image: docker:dind
options: --privileged
steps:
- name: Set up environment
run: |
apk add --no-cache make bash git
- name: Clean Up
run: |
make clean

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