This repository was archived by the owner on Sep 9, 2025. It is now read-only.
refactor: rename chemboard to chembord #23
Workflow file for this run
This file contains hidden or 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: Build and Push Docker Image | |
on: | |
# Run when merging/pushing to the main branch or pushing a version tag | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*.*.*' | |
# Also run when a Pull Request is opened/updated against the main branch | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: ./tools/image/Dockerfile | |
platforms: linux/amd64 | |
# Only push the image if the event is a 'push' (to main or a tag). | |
push: ${{ github.event_name == 'push' }} | |
tags: | | |
ghcr.io/sdsc-ordes/catplus-chembord:latest | |
ghcr.io/sdsc-ordes/catplus-chembord:${{ github.sha }} |