oliverdavies.uk/.github/workflows/ci.yml

37 lines
831 B
YAML
Raw Normal View History

2021-07-27 08:00:00 +00:00
name: CI
on:
push:
branches:
- main
2021-08-17 19:41:39 +00:00
paths-ignore:
2022-09-29 21:49:41 +00:00
- "README.md"
2021-08-17 19:43:06 +00:00
schedule:
2022-09-29 21:49:41 +00:00
- cron: "0 12 15 * *"
2021-08-17 19:43:06 +00:00
workflow_dispatch:
2021-07-15 23:47:35 +00:00
env:
DOCKER_TAG: ${{ github.sha }}
jobs:
2021-07-15 23:47:35 +00:00
build-and-push-images:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
2022-09-29 21:49:41 +00:00
- uses: extractions/setup-just@95b912dc5d3ed106a72907f2f9b91e76d60bdb76 # 1.5.0
2021-07-15 23:47:35 +00:00
- name: Login to the Docker registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 # v1.10.0
2021-07-15 23:47:35 +00:00
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
2021-10-31 16:41:27 +00:00
- run: cp .env.example .env
working-directory: ./website
2022-09-29 21:49:41 +00:00
- run: |
just push-images ${{ github.sha }}
# vim: sw=2 ts=2