Skip to content

Commit

Permalink
Fix/issue 20 (#23)
Browse files Browse the repository at this point in the history
* Removed broken dep from dockerfile

* Updated cargo crates

* Adding workflow

* Update .github/workflows/docker-image.yml

Co-authored-by: Goostaf <[email protected]>

* updated example docker-compose to reflect what is used in prod

* updated README so others don't need to rip out their hair over why the website doesn't work after running the compose file

* Replaced u8 with u32 in order to support having the entire year as an integer, also future-proofing for 21XX :P

---------

Co-authored-by: Goostaf <[email protected]>
  • Loading branch information
simon-wg and GAsplund authored Nov 6, 2024
1 parent e3c42fc commit 9b7d79a
Show file tree
Hide file tree
Showing 8 changed files with 974 additions and 873 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Docker Image CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Registry
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Docker image (and push on main)
uses: docker/[email protected]
with:
push: ${{ github.ref == 'refs/heads/master' }}
tags: ghcr.io/cthit/digit.chalmers.it:latest
Loading

0 comments on commit 9b7d79a

Please sign in to comment.