Skip to content

publish to docker hub #7

publish to docker hub

publish to docker hub #7

Workflow file for this run

name: publish to docker hub
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'simplephone/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get the version
id: get_version
run: echo "VERSION=$(node -e 'console.log(require('./simplephone/package.json').version)')" >> $GITHUB_ENV
- name: Publish
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: psanders/simplephone
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
workdir: simplephone
tags: "latest, ${{ env.VERSION }}"