Skip to content
Open
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
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Build and push container
on:
push:
branches: [ main ]
tags: [ '*' ]

env:
REGISTRY: ghcr.io
Expand All @@ -28,6 +29,8 @@ jobs:

- name: Build and push
run: bin/build.sh
env:
TAG: ${{ github.ref_name }}

- name: Build Summary
if: always()
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@ Deployment will eventually be automatic, but in the meantime, the infrastructure

To ignore files from deployment, specify them in `.distignore`.

**Notes for the infrastructure team:**

```
# In this repo (fairpm/server)
git checkout main
git tag -f production
git push --tags

# Then in the fairpm/infrastructure-private repo
./jazz
cd helm/projects/site
bin/deploy production
```

## License

Expand Down
6 changes: 6 additions & 0 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,15 @@ if [ $? -ne 0 ]; then
exit 1
fi

extra_tag=''
[[ -n ${TAG:-} ]] && extra_tag="--tag ghcr.io/fairpm/server:${TAG}"

echo "Building image…" >&2

# shellcheck disable=SC2086
docker build \
--tag ghcr.io/fairpm/server:latest \
$extra_tag \
--build-context src="$BUILD_DIR" \
"$SCRIPT_DIR/container"

Expand Down