Compare commits
1 Commits
e2d7bca962
...
213700bffa
| Author | SHA1 | Date | |
|---|---|---|---|
| 213700bffa |
@ -1,12 +1,7 @@
|
|||||||
name: build-docker-image
|
name: Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
|
||||||
- '*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -18,46 +13,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Set up environment
|
- name: Set up environment
|
||||||
run: |
|
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
|
- name: Build Docker Image
|
||||||
run: |
|
run: |
|
||||||
make build
|
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
|
|
||||||
|
|||||||
37
.gitea/workflows/deploy.yaml
Normal file
37
.gitea/workflows/deploy.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user