Skip to content

Commit

Permalink
feat(winxuu): set workflow to on: release
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Jones committed Jul 7, 2023
1 parent 4e13335 commit 4e00c81
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Build/Push Image

on:
push:
branches:
- main
release:
types: [published]
pull_request:
workflow_dispatch:
inputs:
Expand All @@ -22,6 +21,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Get Release Version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -43,5 +45,7 @@ jobs:
with:
push: ${{ github.event.inputs.push != 'false' }}
platforms: linux/amd64,linux/arm64,linux/arm
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:{{ env.RELEASE_VERSION }}
provenance: false

0 comments on commit 4e00c81

Please sign in to comment.