Skip to content

use v0.9.2 tag

use v0.9.2 tag #11

Workflow file for this run

name: Docker Image CI
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
tags:
description: 'Tags to build and push'
required: true
type: string
default: 'latest'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to ACR
uses: docker/login-action@v2
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@v4
with:
images: |
opencsg/csghub-portal
${{ secrets.ACR_REGISTRY }}/opencsg_public/csghub_portal
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}