Skip to content

feat(version): release 0.2.1 version #18

feat(version): release 0.2.1 version

feat(version): release 0.2.1 version #18

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 }}