From 1122313a4051d9d8172219d917e52cb8606127b6 Mon Sep 17 00:00:00 2001 From: GAsplund Date: Fri, 26 Jan 2024 19:13:55 +0100 Subject: [PATCH 1/2] Push images to ghcr --- .github/workflows/pins.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pins.yml diff --git a/.github/workflows/pins.yml b/.github/workflows/pins.yml new file mode 100644 index 0000000..6fc49c6 --- /dev/null +++ b/.github/workflows/pins.yml @@ -0,0 +1,30 @@ +name: Pins +on: + push: + branches: [main] + pull_request: + branches: [main] +jobs: + build: + name: Build docker container + runs-on: ubuntu-latest + + permissions: + packages: write + + steps: + - uses: actions/checkout@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to GitHub Container Registry + if: ${{ github.ref == 'refs/heads/main' }} + 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/build-push-action@v4.0.0 + with: + push: ${{ github.ref == 'refs/heads/main' }} + tags: ghcr.io/cthit/pins:latest From e644e9da90330881528ad60f44d1292740c7ffa4 Mon Sep 17 00:00:00 2001 From: GAsplund Date: Fri, 26 Jan 2024 19:18:27 +0100 Subject: [PATCH 2/2] Formatting --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index 3aaeaa1..b9c1f76 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,5 @@ # Pins + ## A website for generating pin templates for the equality commmite EqaulIT ![Github version](https://img.shields.io/badge/version-0.1.0-darkblue?style=flat-square) @@ -9,4 +10,5 @@ ### License: + **Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)**