Skip to content

Commit

Permalink
Merge pull request #168 from i-VRESSE/portal-image
Browse files Browse the repository at this point in the history
Build haddock3-webapp-portal image
  • Loading branch information
sverhoeven authored Oct 25, 2024
2 parents fb364a6 + 8164d50 commit 10dca3d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,41 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: ${{startsWith(steps.meta.outputs.version, 'pr-') && 'linux/amd64' || 'linux/arm64,linux/amd64' }}
webapp4portal:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/i-vresse/haddock3-webapp-portal
labels: |
org.opencontainers.image.description=Haddock3 web application image.
org.opencontainers.image.url=https://github.com/i-VRESSE/haddock3-webapp/blob/main/deploy/README.md#images
org.opencontainers.image.documentation.url=https://github.com/i-VRESSE/haddock3-webapp/blob/main/deploy/README.md#images
- name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
file: deploy/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
build-args: "HADDOCK3WEBAPP_PREFIX=/haddock3/"
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: "linux/amd64"
playwright:
needs:
- bartender
Expand Down
4 changes: 4 additions & 0 deletions deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@ Generates a rsa private key (/certs/private_key.pem file) and public key (/certs
## haddock3-webapp image

Haddock3 web application image.

## haddock3-webapp-portal image

Haddock3 web application image build with `/haddock3/` prefix.

0 comments on commit 10dca3d

Please sign in to comment.