Skip to content

feat(version): release 0.0.8 version #8

feat(version): release 0.0.8 version

feat(version): release 0.0.8 version #8

Workflow file for this run

name: Docker Image (app.robolaunch)
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
environment:
name: public-app
steps:
- name: Checkout Code
uses: actions/[email protected]
- 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/frontend-public:${{ steps.project_version.outputs.version }}-app \
--build-arg BACKEND_URL=${{ secrets.BACKEND_URL }} \
--build-arg KEYCLOAK_URL=${{ secrets.KEYCLOAK_URL }} \
--build-arg KEYCLOAK_REALM=${{ secrets.KEYCLOAK_REALM }} \
--build-arg KEYCLOAK_CLIENT_ID=${{ secrets.KEYCLOAK_CLIENT_ID }} \
.
- 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/frontend-public:${{ steps.project_version.outputs.version }}-app