Skip to content

deploy bis

deploy bis #4

Workflow file for this run

name: Deploy BioSpring
on:
push:
pull_request:
release:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
get-mddriver-freesasa:
name: Get MDDriver & FreeSASA
runs-on: ubuntu-latest
steps:
# - Get MDDriver ---------------------------------------------------------
- name: Checkout MDDriver
uses: actions/[email protected]
with:
repository: LBT-CNRS/MDDriver
path: mddriver_src
- name: Upload MDDriver Artifacts
uses: actions/upload-artifact@v3
with:
name: mddriver_src
path: mddriver_src
# - Get FreeSASA ---------------------------------------------------------
- name: Checkout FreeSASA
uses: actions/[email protected]
with:
repository: mittinatten/freesasa
path: freesasa_src
- name: Configure FreeSASA
run: |
cd freesasa_src
git submodule init
git submodule update
- name: Upload FreeSASA Artifacts
uses: actions/upload-artifact@v3
with:
name: freesasa_src
path: freesasa_src
deploy-docker-image:
name: Deploy Docker Image
runs-on: ubuntu-latest
needs: get-mddriver-freesasa
# Sets the permissions granted to the GITHUB_TOKEN for the actions in this job.
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Download MDDriver Artifacts
uses: actions/download-artifact@v3
with:
name: mddriver_src
path: mddriver_src
- name: Download FreeSASA Artifacts
uses: actions/download-artifact@v3
with:
name: freesasa_src
path: freesasa_src
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: List project files
run: ls -la
- name: Build and push Docker image
id: push
uses: docker/[email protected]
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Generate artifact attestation
uses: actions/[email protected]
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
# ------------------------------------------------------------------------