-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package yeti-web with ruby using rbenv
build process now complies neccessary ruby version using ruby-build and rbenv. Ruby version is set in .ruby-version file. Built ruby is used in tests and is included in debian package, which frees project from locking onto interpreter version from distribution repos. changes: * remove git-changelog for changelog generation * remove debbuild and lintian for package build * disable deprecated swagger task in Makefile * optimize dockerfile for build image * unlock bundler version in Makefile * fix bundler config commands in Makefile * package ruby using rbenv * update ruby to 2.7.4 * setup docker image build using github actions and gcr
- Loading branch information
Showing
18 changed files
with
206 additions
and
131 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Build docker images | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '6 9 * * SUN' | ||
|
||
jobs: | ||
ci-image: | ||
name: Build images for CI | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Push app image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ci/buster-build.Dockerfile | ||
push: true | ||
tags: ghcr.io/${{ github.repository_owner }}/yeti-web:buster-build | ||
|
||
- name: Push db image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ci/pg13.Dockerfile | ||
push: true | ||
tags: ghcr.io/${{ github.repository_owner }}/yeti-web/pgsql:13 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/bin/bash | ||
|
||
export GEM_HOME=vendor/bundler | ||
export RBENV_ROOT="$(realpath ./vendor/rbenv)" | ||
export PATH="$RBENV_ROOT/shims:$GEM_HOME/bin:$PATH" | ||
./vendor/bundler/bin/bundler $@ | ||
|
Oops, something went wrong.