Skip to content

refactor(action-yaml): 🎉 update on handler at actions yaml #9

refactor(action-yaml): 🎉 update on handler at actions yaml

refactor(action-yaml): 🎉 update on handler at actions yaml #9

Workflow file for this run

name: Docker
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Extract Version from package.json
id: project_version
run: echo "::set-output name=version::$(node -e 'console.log(require("./package.json").version)')"
- name: Build the Docker Image
run: |
docker build \
--file Dockerfile \
--tag robolaunchio/physical-robot-services:${{ steps.project_version.outputs.version }} \
.
- name: Login to Docker Hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Push the Docker Image to Docker Hub
run: docker push robolaunchio/physical-robot-services:${{ steps.project_version.outputs.version }}