Skip to content

Commit

Permalink
Merge pull request #7 from QXIP/github_action
Browse files Browse the repository at this point in the history
Create build_push.yml
  • Loading branch information
Dletta authored Jul 31, 2024
2 parents af09114 + 2d68d18 commit 97aa032
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 'Build and push container (GHCR / Dockerhub)'

on:
release:
types: [published]
workflow_dispatch:
inputs:
TAG_NAME:
description: 'Release Version Tag (0.0.0)'
required: true
jobs:
node:
name: 'Build & Publish Container'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
with:
ref: ${{ github.ref }}
- name: Update Package to Release version
uses: technote-space/package-version-check-action@v1.9.3

- name: Build and push to GHCR
uses: docker/build-push-action@v5.0.0
with:
platforms: linux/amd64
file: ./Dockerfile
push: true
tags: |
ghcr.io/qxip/speech2hep:latest
ghcr.io/qxip/speech2hep:${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
labels: |
dev.speech2hep.image.title=speech2hep
dev.speech2hep.image.type=nodejs
dev.speech2hep.image.version={{github.event.inputs.TAG_NAME || github.event.release.tag_name }}

0 comments on commit 97aa032

Please sign in to comment.