Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
GyroGearl00se committed Jun 14, 2024
2 parents 95fa135 + 620e39a commit fc0faa0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Docker Image

on:
release:
types: published
tags:
- v*

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v2
with:
images: gyrogearl00se/solacewebclient
tags: |
type=raw,value=latest,enable=${{ endsWith(GitHub.ref, 'master') }}
type=ref,event=tag
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker images
uses: docker/[email protected]
with:
push: ${{ GitHub.event_name != 'pull_request' || contains(GitHub.head_ref, 'feature') }}
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit fc0faa0

Please sign in to comment.