feat(version): release 0.0.6 version #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |