Skip to content

fix the smartmontools build #29

fix the smartmontools build

fix the smartmontools build #29

Workflow file for this run

name: Docker Image CI
on:
push:
branches:
- main
create:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
run: |
tag="${GITHUB_REF##*/}"
upstream_tag="$tag"
if [ "$tag" = "main" ]
then
upstream_tag="v18"
fi
image_name="ghcr.io/cubyte-oss/ceph:${tag}-cubyte"
podman build --build-arg UPSTREAM_TAG="$upstream_tag" -t "$image_name" .
podman push "$image_name"