Skip to content

Commit

Permalink
feat: base branch with github action for automated build
Browse files Browse the repository at this point in the history
  • Loading branch information
ymarcon committed May 15, 2024
1 parent 4e1d41a commit bb914f4
Show file tree
Hide file tree
Showing 54 changed files with 63 additions and 6,915 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Publish Docker image

on:
release:
types: [published]

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
env:
REGISTRY: index.docker.io
IMAGE_NAME: datashield/rock-base
permissions:
id-token: write
contents: read
attestations: write
packages: write
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
tags: |
type=match,pattern=\d+.\d+.\d+-R\d+.\d+.\d+
type=match,pattern=\d+.\d+.\d+-R\d+.\d+
type=match,pattern=\d+.\d+.\d+-R\d+
type=match,pattern=\d+.\d+.\d+
type=match,pattern=\d+.\d+
type=match,pattern=\d+
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}


- 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: false

File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# docker-rock
# docker-rock-base

[Rock R server](https://www.obiba.org/pages/products/rock/) with DataSHIELD packages inside.
[Rock R server](https://www.obiba.org/pages/products/rock/) with DataSHIELD packages inside:

Available Docker images:

* `datashield/rock-base`, includes [dsBase](https://github.com/datashield/dsBase)
* `datashield/rock-mediation`, includes [dsBase](https://github.com/datashield/dsBase) and [dsMediation](https://github.com/datashield/dsMediation)

To use these images as DataSHIELD profiles, see [Opal R/DataSHIELD cookbook](https://opaldoc.obiba.org/en/latest/cookbook/r-datashield.html).
* [datashield/dsBase](https://github.com/datashield/dsBase)
* [obiba/resourcer](https://github.com/obiba/resourcer)
6 changes: 0 additions & 6 deletions base/README.md

This file was deleted.

File renamed without changes.
13 changes: 0 additions & 13 deletions dolomite-aquaduct/Dockerfile

This file was deleted.

0 comments on commit bb914f4

Please sign in to comment.