New SEAMM package database #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
release: | |
types: [published] | |
branches: | |
- "main" | |
push: | |
tags: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: set up docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: log into GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ghcr.io/molssi-seamm/seamm | |
tags: | |
type=semver,pattern={{version}} | |
annotations: | | |
org.opencontainers.image.description=SEAMM environment | |
labels: | | |
org.opencontainers.image.description=SEAMM environment | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./environments | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
annotations: ${{ steps.meta.outputs.annotations }} | |
labels: ${{ steps.meta.outputs.labels }} | |
- name: Get message | |
run: | | |
{ | |
echo 'SLACK_MESSAGE<<EOF' | |
git log -1 | sed 1,4d | |
echo EOF | |
} >> "$GITHUB_ENV" | |
- name: Post to a Slack channel | |
id: slack | |
uses: slackapi/slack-github-action@v1.25.0 | |
with: | |
channel-id: 'github' | |
slack-message: ${{ env.SLACK_MESSAGE }} | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |