feat: first release

This commit is contained in:
Kamesh
2022-07-11 12:55:41 +05:30
parent 8d44e7d2a0
commit dd0ac6877d
10 changed files with 109 additions and 163 deletions
+40
View File
@@ -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
+14
View File
@@ -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