Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/release-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ on:
branches: [ 'releases/v*' ]
types: [ closed ]

env:
DOCKER_REGISTRY: ghcr.io
DOCKER_PACKAGE: site-composite

HAB_LICENSE: accept-no-persist

jobs:
release-deploy:

Expand Down Expand Up @@ -32,6 +38,47 @@ jobs:
echo "${PR_BODY}" >> $GITHUB_ENV
echo 'END_OF_PR_BODY' >> $GITHUB_ENV

DOCKER_REPOSITORY="${GITHUB_REPOSITORY,,}"
echo "Using DOCKER_REPOSITORY=${DOCKER_REPOSITORY}"
echo "DOCKER_REPOSITORY=${DOCKER_REPOSITORY}" >> $GITHUB_ENV

DOCKER_TAG="${RELEASE_TAG:1}"
echo "Using DOCKER_TAG=${DOCKER_TAG}"
echo "DOCKER_TAG=${DOCKER_TAG}" >> $GITHUB_ENV

- name: 'Initialize Chef Habitat environment'
uses: JarvusInnovations/habitat-action@action/v1
with:
deps: |
jarvus/hologit

- uses: actions/checkout@v2

- id: site-projection
name: 'Project holobranch: emergence-site'
uses: JarvusInnovations/hologit@actions/projector/v1
with:
# use HEAD checked out above by checkout action
ref: HEAD
fetch: false
holobranch: emergence-site

- name: Build & push Docker image
uses: whoan/docker-build-with-cache-action@v5
with:
dockerfile: Dockerfile
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ${{ env.DOCKER_REGISTRY }}
image_name: ${{ env.DOCKER_REPOSITORY }}/${{ env.DOCKER_PACKAGE }}
image_tag: ${{ env.DOCKER_TAG }}
build_extra_args: |
--build-arg=SITE_TREE=${{ steps.site-projection.outputs.tree }}
--build-arg=SITE_VERSION=${{ env.RELEASE_TAG }}
--build-arg=SOURCE_COMMIT=${{ github.sha }}
--build-arg=SOURCE_TAG=${{ env.RELEASE_TAG }}
--build-arg=HAB_LICENSE=${{ env.HAB_LICENSE }}

- name: Create release
uses: ncipollo/release-action@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .holo/sources/laddr.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[holosource]
url = "https://github.com/CodeForPhilly/laddr"
ref = "refs/tags/v3.0.5"
ref = "refs/tags/v3.0.7"
2 changes: 1 addition & 1 deletion mkdocs.repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ repo_url: https://github.com/CodeForPhilly/codeforphilly

extra:
repository:
name: laddr
name: codeforphilly
url: git@github.com:CodeForPhilly/codeforphilly.git