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 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)**