Compare commits
1 Commits
v1.0.52
...
feat/ci_pu
Author | SHA1 | Date | |
---|---|---|---|
74af27f995 |
38
.github/workflows/docker-publish.yml
vendored
Normal file
38
.github/workflows/docker-publish.yml
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
name: Docker Publish
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Extract metadata for Docker
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: ${{ secrets.DOCKERHUB_USERNAME }}/gitlab-mcp
|
||||||
|
tags: |
|
||||||
|
type=semver,pattern={{version}}
|
||||||
|
latest
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
3
.secrets
Normal file
3
.secrets
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
DOCKERHUB_USERNAME=DOCKERHUB_USERNAME
|
||||||
|
DOCKERHUB_TOKEN=DOCKERHUB_TOKEN
|
||||||
|
GITHUB_TOKEN=DOCKERHUB_TOKEN
|
6
event.json
Normal file
6
event.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"action": "published",
|
||||||
|
"release": {
|
||||||
|
"tag_name": "v1.0.52"
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user