Skip to content

Update sssd location #7

Update sssd location

Update sssd location #7

name: Publish Container Image
on:
push:
branches:
- main
paths:
- "container/**"
- "Dockerfile"
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare
id: prep
run: |
REF=${GITHUB_REF_NAME}
SHA=${GITHUB_SHA:0:7}
TIME=$(date +%s)
TAG=$REF-$SHA-$TIME
IMAGE="registry.preferred.ai/slurm/server"
echo ::set-output name=tagged_image::${IMAGE}:${TAG},${IMAGE}:latest
echo ::set-output name=tag::${TAG}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to registry
uses: docker/login-action@v2
with:
registry: registry.preferred.ai
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.prep.outputs.tagged_image }}
cache-from: type=gha
cache-to: type=gha,mode=max