Skip to content

let's start with a SLiM container #2

let's start with a SLiM container

let's start with a SLiM container #2

Workflow file for this run

name: docker publish
on: push
jobs:
build-tools-images:
runs-on: ubuntu-latest
strategy:
matrix:
container:
- name: SLiM
version: 4.2.2
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata for Docker
id: metadata # store tags/labels in this workflow id
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}/tools/${{ matrix.container.name }}
tags: |
type=raw,version=${{ matrix.container.version }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: docker/tools/${{ matrix.container.name }}
load: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}