Skip to content

Rollback registry to filesystem #12

Rollback registry to filesystem

Rollback registry to filesystem #12

name: Release Docker Images
on:
push:
tags:
- 'v\d+\.\d+\.\d+'
jobs:
build:
permissions:
contents: write
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
lfs: true
- name: Cache Prune
run: |
docker system prune -f
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login ACR
uses: docker/login-action@v3
with:
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
registry: ${{ secrets.ACR_REGISTRY }}
- name: Extract Docker metadata (tags, labels)
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ secrets.ACR_REGISTRY }}/opencsg_public/omnibus-csghub
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: ./docker
file: ./docker/Dockerfile
push: true
provenance: false
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64,linux/arm64