-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from JarvusInnovations/develop
Release: hologit v0.35.0
- Loading branch information
Showing
13 changed files
with
140 additions
and
23 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Public Actions to develop stream | ||
name: Publish Actions to develop stream | ||
|
||
on: | ||
push: | ||
|
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,86 @@ | ||
name: Publish Habitat package and studio | ||
|
||
on: | ||
push: | ||
tags: [ 'v*' ] | ||
|
||
env: | ||
HAB_LICENSE: accept-no-persist | ||
|
||
|
||
jobs: | ||
publish-habitat: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Initialize Chef Habitat environment' | ||
uses: JarvusInnovations/habitat-action@action/v1 | ||
with: | ||
deps: | | ||
core/hab-plan-build | ||
- uses: actions/checkout@v2 | ||
- name: Place tag in environment | ||
run: | | ||
echo "SOURCE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV | ||
echo "REPO_NAME=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV | ||
- name: Import origin key | ||
run: | | ||
hab origin key import <<END_OF_KEY | ||
${{ secrets.HAB_ORIGIN_KEY }} | ||
END_OF_KEY | ||
hab origin key import <<END_OF_KEY | ||
${{ secrets.HAB_ORIGIN_KEY_PUB }} | ||
END_OF_KEY | ||
- name: Setting package.json version | ||
run: npm version --no-git-tag-version "${SOURCE_TAG#v}" | ||
|
||
- name: Build jarvus/hologit | ||
run: | | ||
hab pkg exec core/hab-plan-build hab-plan-build . | ||
source results/last_build.env | ||
echo "HOLOGIT_PACKAGE=jarvus/hologit/${pkg_version}/${pkg_release}" >> $GITHUB_ENV | ||
- name: Upload jarvus/hologit | ||
env: | ||
HAB_AUTH_TOKEN: '${{ secrets.HAB_AUTH_TOKEN }}' | ||
run: | | ||
source results/last_build.env | ||
hab pkg upload "results/${pkg_artifact}" -c stable | ||
- name: Build jarvus/hologit-studio | ||
run: | | ||
hab pkg exec core/hab-plan-build hab-plan-build studio | ||
source results/last_build.env | ||
echo "HOLOGIT_STUDIO_PACKAGE=jarvus/hologit-studio/${pkg_version}/${pkg_release}" >> $GITHUB_ENV | ||
- name: Upload jarvus/hologit-studio | ||
env: | ||
HAB_AUTH_TOKEN: '${{ secrets.HAB_AUTH_TOKEN }}' | ||
run: | | ||
source results/last_build.env | ||
hab pkg upload "results/${pkg_artifact}" -c stable | ||
- name: Pull previous jarvus/hologit-studio:latest | ||
run: docker pull jarvus/hologit-studio:latest || true | ||
|
||
- name: Build new jarvus/hologit-studio:latest | ||
run: | | ||
docker build \ | ||
--build-arg "HOLOGIT_STUDIO_PACKAGE=${HOLOGIT_STUDIO_PACKAGE}" \ | ||
--cache-from "jarvus/hologit-studio:latest" \ | ||
--tag "jarvus/hologit-studio:latest" \ | ||
--tag "jarvus/hologit-studio:${SOURCE_TAG#v}" \ | ||
./studio | ||
- name: Log into DockerHub | ||
run: | | ||
mkdir -p ~/.docker | ||
echo "${{ secrets.DOCKER_CONFIG_BASE64 }}" | base64 -d > ~/.docker/config.json | ||
- name: Push new jarvus/hologit-studio:latest | ||
run: docker push jarvus/hologit-studio:latest |
5 changes: 3 additions & 2 deletions
5
.github/workflows/docs-site.yml → .github/workflows/publish-website.yml
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.dockerignore | ||
Dockerfile | ||
results/ |
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,31 @@ | ||
# common base for both stages | ||
FROM habitat/default-studio-x86_64-linux:0.79.1 as base | ||
|
||
ARG HAB_LICENSE=no-accept | ||
ENV HAB_LICENSE=$HAB_LICENSE | ||
ENV HAB_ORIGIN=jarvus | ||
|
||
ENTRYPOINT ["hab", "sup", "run"] | ||
CMD ["jarvus/hologit-studio"] | ||
|
||
RUN hab pkg install \ | ||
core/hab-sup/0.79.1 \ | ||
core/hab-launcher/10180 \ | ||
core/tar \ | ||
core/gcc \ | ||
&& hab pkg exec core/coreutils rm -rf /hab/cache/{artifacts,src}/ | ||
|
||
RUN hab pkg binlink core/busybox-static \ | ||
&& hab pkg binlink --dest /usr/bin core/busybox-static env \ | ||
&& hab pkg binlink --force core/tar | ||
|
||
RUN mkdir -m 1777 -p /tmp \ | ||
&& mkdir -m 0750 -p /root \ | ||
&& mkdir -m 0755 -p /usr/bin /home \ | ||
&& addgroup developer \ | ||
&& chgrp -R developer /hab \ | ||
&& chmod -R g+w /hab | ||
|
||
ARG HOLOGIT_STUDIO_PACKAGE=jarvus/hologit-studio | ||
RUN hab pkg install $HOLOGIT_STUDIO_PACKAGE \ | ||
&& hab pkg exec core/coreutils rm -rf /hab/cache/{artifacts,src}/ |
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