Skip to content

Commit 4aa893c

Browse files
Merge pull request #13 from CodeForPhilly/develop
Release: v1.0.4
2 parents 9cab091 + 7c7e823 commit 4aa893c

File tree

3 files changed

+49
-2
lines changed

3 files changed

+49
-2
lines changed

.github/workflows/release-deploy.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
branches: [ 'releases/v*' ]
66
types: [ closed ]
77

8+
env:
9+
DOCKER_REGISTRY: ghcr.io
10+
DOCKER_PACKAGE: site-composite
11+
12+
HAB_LICENSE: accept-no-persist
13+
814
jobs:
915
release-deploy:
1016

@@ -32,6 +38,47 @@ jobs:
3238
echo "${PR_BODY}" >> $GITHUB_ENV
3339
echo 'END_OF_PR_BODY' >> $GITHUB_ENV
3440
41+
DOCKER_REPOSITORY="${GITHUB_REPOSITORY,,}"
42+
echo "Using DOCKER_REPOSITORY=${DOCKER_REPOSITORY}"
43+
echo "DOCKER_REPOSITORY=${DOCKER_REPOSITORY}" >> $GITHUB_ENV
44+
45+
DOCKER_TAG="${RELEASE_TAG:1}"
46+
echo "Using DOCKER_TAG=${DOCKER_TAG}"
47+
echo "DOCKER_TAG=${DOCKER_TAG}" >> $GITHUB_ENV
48+
49+
- name: 'Initialize Chef Habitat environment'
50+
uses: JarvusInnovations/habitat-action@action/v1
51+
with:
52+
deps: |
53+
jarvus/hologit
54+
55+
- uses: actions/checkout@v2
56+
57+
- id: site-projection
58+
name: 'Project holobranch: emergence-site'
59+
uses: JarvusInnovations/hologit@actions/projector/v1
60+
with:
61+
# use HEAD checked out above by checkout action
62+
ref: HEAD
63+
fetch: false
64+
holobranch: emergence-site
65+
66+
- name: Build & push Docker image
67+
uses: whoan/docker-build-with-cache-action@v5
68+
with:
69+
dockerfile: Dockerfile
70+
username: ${{ github.actor }}
71+
password: ${{ secrets.GITHUB_TOKEN }}
72+
registry: ${{ env.DOCKER_REGISTRY }}
73+
image_name: ${{ env.DOCKER_REPOSITORY }}/${{ env.DOCKER_PACKAGE }}
74+
image_tag: ${{ env.DOCKER_TAG }}
75+
build_extra_args: |
76+
--build-arg=SITE_TREE=${{ steps.site-projection.outputs.tree }}
77+
--build-arg=SITE_VERSION=${{ env.RELEASE_TAG }}
78+
--build-arg=SOURCE_COMMIT=${{ github.sha }}
79+
--build-arg=SOURCE_TAG=${{ env.RELEASE_TAG }}
80+
--build-arg=HAB_LICENSE=${{ env.HAB_LICENSE }}
81+
3582
- name: Create release
3683
uses: ncipollo/release-action@v1
3784
with:

.holo/sources/laddr.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[holosource]
22
url = "https://github.com/CodeForPhilly/laddr"
3-
ref = "refs/tags/v3.0.5"
3+
ref = "refs/tags/v3.0.7"

mkdocs.repo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ repo_url: https://github.com/CodeForPhilly/codeforphilly
22

33
extra:
44
repository:
5-
name: laddr
5+
name: codeforphilly
66
url: [email protected]:CodeForPhilly/codeforphilly.git

0 commit comments

Comments
 (0)