mirror of
https://github.com/kameshsampath/drone-vercel-deploy.git
synced 2026-06-16 14:49:32 +08:00
feat: first release
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
name: Release Image
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- "released"
|
||||
env:
|
||||
PLUGIN_IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/drone-vercel-deploy
|
||||
jobs:
|
||||
build-and-release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- name: Login to Docker Hub
|
||||
id: docker-hub-login
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Build and Release Image
|
||||
env:
|
||||
TAG_NAME: ${{ github.event.release.tag_name }}
|
||||
PLUGIN_IMAGE_NAME: ${{ env.PLUGIN_IMAGE_NAME }}
|
||||
id: build and release plugin image
|
||||
run: |
|
||||
docker build \
|
||||
--build-arg BUILDKIT_MULTI_PLATFORM=1 \
|
||||
--platform=linux/amd64 \
|
||||
--platform=linux/arm64 \
|
||||
--push \
|
||||
--tag $PLUGIN_IMAGE_NAME:$TAG \
|
||||
-f docker/Dockerfile .
|
||||
docker tag $PLUGIN_IMAGE_NAME:$TAG $PLUGIN_IMAGE_NAME
|
||||
docker push $PLUGIN_IMAGE_NAME
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
name: release-please
|
||||
jobs:
|
||||
release-please:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: google-github-actions/release-please-action@v3
|
||||
with:
|
||||
release-type: simple
|
||||
package-name: release-please-action
|
||||
bump-minor-pre-major: true
|
||||
Reference in New Issue
Block a user