Skip to content

Add traders page and link from contact #1166

Add traders page and link from contact

Add traders page and link from contact #1166

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Run tests
uses: ./.github/workflows/test.yml
permissions:
contents: read
build:
name: Build and publish production containers
runs-on: ubuntu-latest
needs: test
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create git revision stamp
run: git rev-parse HEAD > .git-revision
- name: Build app image
run: docker build -t ghcr.io/emfcamp/website:latest -f ./Dockerfile.prod .
- name: Build static image
# This builds from ghcr.io/emfcamp/website:latest, which we haven't pushed yet but should be correct locally
run: docker build -t ghcr.io/emfcamp/website-static:latest -f ./docker/static/Dockerfile ./docker/static/
- name: Publish static image
# Push static first so it hopefully gets pulled first
run: docker push ghcr.io/emfcamp/website-static:latest
- name: Publish app image
run: docker push ghcr.io/emfcamp/website:latest