Skip to content

Commit

Permalink
test docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
axb committed Dec 6, 2023
1 parent c224658 commit f3742d2
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: release

on:
push:
branches: [ main ]
workflow_dispatch:
inputs:
releaseVersion:
Expand Down Expand Up @@ -70,3 +69,18 @@ jobs:
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
AUTO_RELEASE_AFTER_CLOSE: true
if: env.auto_release == 'true'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- 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: Build and push
uses: docker/build-push-action@v5
with:
push: true
dockerfile: ./docker/Dockerfile
tags: ${{ github.event.inputs.releaseVersion != '' && format('weibocom/rill-flow:latest,weibocom/rill-flow:{0}',github.event.inputs.releaseVersion || 'weibocom/rill-flow:latest' }}

0 comments on commit f3742d2

Please sign in to comment.