1
0
镜像自地址 https://github.com/devcm-repo/container-images.git 已同步 2026-06-06 05:41:05 +00:00
文件
container-images/.github/workflows/release.yml
T
2024-06-24 18:11:41 +08:00

35 行
838 B
YAML

name: Release Charts
on:
push:
tags:
- release-*
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: devcm/
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}