Skip to content

Commit

Permalink
Merge pull request #466 from salopensource/ghr_migration
Browse files Browse the repository at this point in the history
This will work better
  • Loading branch information
grahamgilbert authored Nov 6, 2024
2 parents 9c66b93 + 332c28d commit ca6fd45
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 171 deletions.
106 changes: 0 additions & 106 deletions .circleci/config.yml

This file was deleted.

14 changes: 2 additions & 12 deletions .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: Build Latest

on:
workflow_run:
workflows: ["Test"]
types:
- completed
release:
types: [published]

jobs:
build-latest:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }}
steps:
- uses: actions/checkout@v2

Expand All @@ -27,10 +24,3 @@ jobs:
context: .
push: true
tags: ghcr.io/salopensource/sal:latest

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: Build Tag

on:
workflow_run:
workflows: ["Test"]
types:
- completed
release:
types: [published]

jobs:
build-tag:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && startsWith(github.event.workflow_run.head_commit.message, 'tag:') }}
steps:
- uses: actions/checkout@v2

Expand All @@ -27,10 +24,4 @@ jobs:
context: .
push: true
tags: ghcr.io/salopensource/sal:${{ github.ref_name }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

16 changes: 3 additions & 13 deletions .github/workflows/build-saml-latest.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: Build Latest SAML

on:
workflow_run:
workflows: ["Test"]
types:
- completed

release:
types: [published]

jobs:
build-saml:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }}
steps:
- uses: actions/checkout@v2

Expand All @@ -34,10 +31,3 @@ jobs:
file: saml/Dockerfile.pristine
push: true
tags: ghcr.io/salopensource/sal-saml:latest

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: Build Tag

on:
workflow_run:
workflows: ["Test"]
types:
- completed
release:
types: [published]

jobs:
build-saml-tag:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && startsWith(github.event.workflow_run.head_commit.message, 'tag:') }}
steps:
- uses: actions/checkout@v2

Expand All @@ -34,10 +31,3 @@ jobs:
push: true
file: saml/Dockerfile.pristine
tags: ghcr.io/salopensource/sal-saml:${{ github.ref_name }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ After re-ordering and hiding plugins from some screens, you might even want to m

## External Authentication

There are variants of Sal that support both [SAML](https://hub.docker.com/r/macadmins/sal-saml/) and [LDAP](https://hub.docker.com/r/macadmins/sal-ldap/) authentication.
There is a variant of Sal that supports [SAML](https://github.com/salopensource/sal/pkgs/container/sal-saml)authentication.

## Having problems?

You should check out the [troubleshooting](https://github.com/salopensource/sal/wiki/Troubleshooting) page, consider getting in touch via the [Google group](http://groups.google.com/group/sal-discuss), or heading over the the #sal channel on the [macadmins.org Slack](http://macadmins.org).
You should check out the [troubleshooting](https://github.com/salopensource/sal/wiki/Troubleshooting) page, consider heading over the the #sal channel on the [macadmins.org Slack](http://macadmins.org).

## API

Expand Down
9 changes: 4 additions & 5 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ services:
- /tmp/postgresql/db:/var/lib/postgresql/data
restart: always
environment:
DB_NAME: sal
DB_USER: admin
DB_PASS: password
DB_NAME: sal
DB_USER: admin
DB_PASS: password

sal:
depends_on:
- db
image: macadmins/sal
image: ghcr.io/salopensource/sal
ports:
- "80:8000"
restart: always
Expand All @@ -27,4 +27,3 @@ services:
DB_PASS: password
volumes:
db_data: {}

8 changes: 3 additions & 5 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# macadmins-sal

This Docker image runs [Sal](https://github.com/salopensource/sal). The container expects a linked PostgreSQL database container.

# Settings
Expand Down Expand Up @@ -51,7 +49,7 @@ $ docker run -d --name="postgres-sal" \
grahamgilbert/postgres
```

#Running the Sal Container
# Running the Sal Container

```bash
$ docker run -d --name="sal" \
Expand All @@ -62,7 +60,7 @@ $ docker run -d --name="sal" \
-e DB_USER=admin \
-e DB_PASS=password \
--restart="always" \
macadmins/sal:2.0.1
ghcr.io/salopensource/sal:latest
```

# Advanced usage
Expand All @@ -84,5 +82,5 @@ $ docker run -d --name="sal" \
-e DB_USER=admin \
-e DB_PASS=password \
--restart="always" \
macadmins/sal:2.0.2
ghcr.io/salopensource/sal:latest
```
2 changes: 1 addition & 1 deletion docker/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

docker build -t "macadmins/sal" .
docker build -t "ghcr.io/salopensource/sal" .
2 changes: 1 addition & 1 deletion docker/docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ docker run -d \
--restart="always" \
-v "$CWD/sal.db":/home/docker/sal/db/sal.db \
-p 8000:8000 \
macadmins/sal
ghcr.io/salopensource/sal:latest
2 changes: 1 addition & 1 deletion docker/docker_run_pg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ docker run -d \
--link postgres-sal:db \
--name=sal \
-p 8000:8000 \
macadmins/sal
ghcr.io/salopensource/sal
2 changes: 1 addition & 1 deletion sal/version.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<plist version="1.0">
<dict>
<key>version</key>
<string>4.3.0.2294</string>
<string>4.3.0.2295</string>
</dict>
</plist>

0 comments on commit ca6fd45

Please sign in to comment.