Skip to content

Change repository and docker orgs. Add GH workflows. #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/on-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: on-pull-request

on: [pull_request]

jobs:

build-test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 10

- name: Install tools
shell: pwsh
run: |
Install-Module InvokeBuild -Force

- name: Build
shell: pwsh
run: |
Invoke-Build

- name: Test
shell: pwsh
run: |
Invoke-Build Test
50 changes: 50 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: publish

on:
push:
branches:
- master
schedule:
- cron: "0 0 * * 1"
workflow_dispatch:

jobs:

build-test-publish:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 10

- name: Install tools
shell: pwsh
run: |
Install-Module InvokeBuild -Force

- name: Build
shell: pwsh
run: |
Invoke-Build

- name: Test
shell: pwsh
run: |
Invoke-Build Test

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Publish
shell: pwsh
run: |
Invoke-Build Publish

- name: Log out from Docker Hub
run: |
docker logout
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Docker images for Firebird Database.

# Supported tags

|`ghcr.io/fdcastel/firebird`|Dockerfile|
|`firebirdsql/firebird`|Dockerfile|
|:-|:-:|
|`5`, `5.0.1`, `latest`|[Dockerfile](./generated/5.0.1/bookworm/Dockerfile)|
|`bullseye`, `5-bullseye`, `5.0.1-bullseye`|[Dockerfile](./generated/5.0.1/bullseye/Dockerfile)|
Expand Down Expand Up @@ -88,7 +88,7 @@ docker run \
-e FIREBIRD_DATABASE=mirror.fdb \
-e FIREBIRD_DATABASE_DEFAULT_CHARSET=UTF8 \
-v ./data:/var/lib/firebird/data
--detach ghcr.io/fdcastel/firebird
--detach firebirdsql/firebird
```


Expand All @@ -98,7 +98,7 @@ docker run \
```yaml
services:
firebird:
image: ghcr.io/fdcastel/firebird
image: firebirdsql/firebird
restart: always
environment:
- FIREBIRD_ROOT_PASSWORD=************
Expand All @@ -115,7 +115,7 @@ services:
## Connect to an existing instance using `isql`

```bash
docker run -it --rm ghcr.io/fdcastel/firebird isql -u SYSDBA -p ************ SERVER:/path/to/file.fdb
docker run -it --rm firebirdsql/firebird isql -u SYSDBA -p ************ SERVER:/path/to/file.fdb
```


Expand Down Expand Up @@ -226,7 +226,7 @@ Invoke-Build
You can then check all created images with:

```bash
docker image ls ghcr.io/fdcastel/firebird
docker image ls firebirdsql/firebird
```


Expand Down
10 changes: 5 additions & 5 deletions src/README.md.template
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Docker images for Firebird Database.

# Supported tags

|`ghcr.io/fdcastel/firebird`|Dockerfile|
|`firebirdsql/firebird`|Dockerfile|
|:-|:-:|
<%$TSupportedTags%>

Expand All @@ -38,7 +38,7 @@ docker run \
-e FIREBIRD_DATABASE=mirror.fdb \
-e FIREBIRD_DATABASE_DEFAULT_CHARSET=UTF8 \
-v ./data:/var/lib/firebird/data
--detach ghcr.io/fdcastel/firebird
--detach firebirdsql/firebird
```


Expand All @@ -48,7 +48,7 @@ docker run \
```yaml
services:
firebird:
image: ghcr.io/fdcastel/firebird
image: firebirdsql/firebird
restart: always
environment:
- FIREBIRD_ROOT_PASSWORD=************
Expand All @@ -65,7 +65,7 @@ services:
## Connect to an existing instance using `isql`

```bash
docker run -it --rm ghcr.io/fdcastel/firebird isql -u SYSDBA -p ************ SERVER:/path/to/file.fdb
docker run -it --rm firebirdsql/firebird isql -u SYSDBA -p ************ SERVER:/path/to/file.fdb
```


Expand Down Expand Up @@ -176,7 +176,7 @@ Invoke-Build
You can then check all created images with:

```bash
docker image ls ghcr.io/fdcastel/firebird
docker image ls firebirdsql/firebird
```


Expand Down
10 changes: 5 additions & 5 deletions src/image.build.ps1.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ param(

# Synopsis: Build docker image.
task Build {
$script:BUILDER_IMAGE_PREFIX = 'ghcr.io/fdcastel'
$script:BUILDER_IMAGE_PREFIX = 'firebirdsql'
$script:BUILDER_IMAGE_NAME = 'firebird'
$script:BUILDER_IMAGE_VERSION = '<%$TImageVersion%>'
$script:BUILDER_IMAGE_TAGS = @(<%$TImageTags%>)
Expand All @@ -15,11 +15,11 @@ task Build {
$tags = $BUILDER_IMAGE_TAGS | ForEach-Object { '--tag', "$BUILDER_IMAGE_PREFIX/${BUILDER_IMAGE_NAME}:$_" }

$allParameters = @(
'build';
$tags;
$noCacheParameter,
'build';
$tags;
$noCacheParameter,
'--label', 'org.opencontainers.image.description=Firebird Database',
'--label', 'org.opencontainers.image.source=https://github.com/fdcastel/firebird-docker',
'--label', 'org.opencontainers.image.source=https://github.com/FirebirdSQL/firebird-docker',
'--label', 'org.opencontainers.image.version=<%$TImageVersion%>',
'.'
)
Expand Down
Loading