Skip to content

Use string for image_name #25

Use string for image_name

Use string for image_name #25

Workflow file for this run

---
name: "Build image"
on:
workflow_dispatch:
push:
branches:
- "main"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image and push to GitHub Container Registry
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: |
ghcr.io/mlibrary/bag-courier:latest
ghcr.io/mlibrary/bag-courier:${{ github.sha }}
file: ./Dockerfile