Skip to content

eln.community-0.2.0

eln.community-0.2.0 #2

Workflow file for this run

name: Build Docker Image
on:
release:
types: [published]
jobs:
build:
# only stable releases
if: ${{ github.event.release.draft == false && github.event.release.prerelease == false }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
# https://github.com/actions/checkout/releases/tag/v6.0.2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4
# https://github.com/docker/setup-buildx-action/releases/tag/v4.0.0
- name: Login to GitHub Container Registry
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4
# https://github.com/docker/login-action/tree/v4.1.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@vd08e5c354a6adb9ed34480a06d141179aa583294 # v7
# https://github.com/docker/build-push-action/releases/tag/v7.0.0
with:
platforms: linux/amd64
push: true
tags: ghcr.io/deltablot/eln.community:latest
build-args: |
VERSION=${{ github.event.release.tag_name }}
cache-from: type=gha
cache-to: type=gha,mode=max