forked from FerretDB/FerretDB
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes FerretDB#902.
- Loading branch information
Showing
13 changed files
with
149 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
name: Packages | ||
on: | ||
pull_request: | ||
types: | ||
- unlabeled # if GitHub Actions stuck, add and remove "no ci" label to force rebuild | ||
- opened | ||
- reopened | ||
- synchronize | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "*" | ||
schedule: | ||
- cron: "12 2 * * *" | ||
|
||
env: | ||
GOPATH: /home/runner/go | ||
GOCACHE: /home/runner/go/cache | ||
GOLANGCI_LINT_CACHE: /home/runner/go/cache/lint | ||
GOMODCACHE: /home/runner/go/mod | ||
GOPROXY: https://proxy.golang.org | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-20.04 | ||
|
||
if: github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'no ci') | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Go | ||
uses: FerretDB/github-actions/setup-go@main | ||
with: | ||
cache-key: packages | ||
|
||
- name: Install Task | ||
run: go generate -x | ||
working-directory: tools | ||
|
||
- name: Run init | ||
run: bin/task init | ||
|
||
- name: Build packages | ||
run: bin/task packages | ||
|
||
- name: Upload ferretdb.deb | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ferretdb.deb | ||
path: build/deb/ferretdb.deb | ||
if-no-files-found: error | ||
|
||
- name: Upload ferretdb.rpm | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ferretdb.rpm | ||
path: build/rpm/ferretdb.rpm | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM centos:7.9.2009 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM debian:11.4 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
name: ferretdb | ||
arch: ${GOARCH} | ||
platform: linux | ||
version: ${VERSION} | ||
section: database | ||
maintainer: FerretDB packages <packages@ferretdb.com> | ||
description: > | ||
FerretDB (previously MangoDB) was founded to become the de-facto open-source substitute to MongoDB. | ||
FerretDB is an open-source proxy, converting the MongoDB 5.0+ wire protocol queries to SQL - | ||
using PostgreSQL as a database engine. | ||
homepage: https://ferretdb.io | ||
license: Apache License 2.0 | ||
contents: | ||
- src: ../bin/ferretdb-testcover | ||
dst: /usr/bin/ferretdb |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters