All checks were successful
Build / build (pull_request) Successful in 51s
- cleaned up multiple layers - removed deploy file - updated deploy workflow
37 lines
975 B
YAML
37 lines
975 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: almalinux-8
|
|
container:
|
|
image: git.query.consul/unkin/almalinux8:latest
|
|
options: --privileged
|
|
|
|
steps:
|
|
- name: Set up environment
|
|
run: |
|
|
dnf install -y yum-utils
|
|
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
|
|
dnf module enable -y nodejs:20
|
|
dnf install -y docker-ce-cli make bash git nodejs
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Build Docker Image
|
|
run: |
|
|
make build
|
|
|
|
- name: Upload RPMs to Gitea
|
|
env:
|
|
DRONECI_PASSWORD: ${{ secrets.DRONECI_PASSWORD }}
|
|
run: |
|
|
for rpm in $(find /workspace -type f -name "*.rpm"); do
|
|
curl --user droneci:${{ secrets.DRONECI_PASSWORD }} --upload-file $rpm https://git.query.consul/api/packages/unkin/rpm/almalinux/el8/upload
|
|
done
|