Bump @formkit/addons from 1.0.0-beta.9-f64c966 to 1.0.0-beta.16-13411… #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Release | |
on: | |
release: | |
types: | |
- published | |
push: | |
branches: | |
- dev | |
env: | |
IMAGE_REGISTRY: ghcr.io | |
IMAGE_PATH: ${{ github.repository }} | |
IMAGE_TAG: ${{ github.ref_name }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get latest release | |
id: latest_release | |
uses: pozetroninc/github-action-get-latest-release@master | |
with: | |
repository: ${{ github.repository }} | |
excludes: prerelease, draft | |
- name: Docker Login | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ env.IMAGE_REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push (latest release) | |
uses: docker/build-push-action@v4 | |
if: ${{ github.event_name == 'release' && steps.latest_release.outputs.release == github.ref_name }} # run only on latest release | |
with: | |
push: true | |
tags: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_PATH }}:${{ env.IMAGE_TAG }}, ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_PATH }}:latest | |
- name: Build and push (release) | |
uses: docker/build-push-action@v4 | |
if: ${{ github.event_name == 'release' && steps.latest_release.outputs.release != github.ref_name }} # run only on release (not latest) | |
with: | |
push: true | |
tags: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_PATH }}:${{ env.IMAGE_TAG }} | |
- name: Build and push (push) | |
uses: docker/build-push-action@v4 | |
if: ${{ github.event_name == 'push' }} # run only on push (to dev) | |
with: | |
push: true | |
tags: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_PATH }}:${{ env.IMAGE_TAG }} |