Skip to content

Commit

Permalink
refactor(workflows): 🎉 update action workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Dec 11, 2023
1 parent c7060cd commit ecd1651
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Docker Image CI

on:
push:
branches:
- main

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-dev \
--tag robolaunchio/frontend-public:${{ steps.project_version.outputs.version }}-dev \
.
- 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 }}-dev
4 changes: 3 additions & 1 deletion src/controllers/RegionTableData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ export function RegionTableData() {
pagesState?.organization?.organizationName!,
),
architecture: instance?.cloudInstanceResource?.architecture,
OSResources: `${instance?.cloudInstanceResource?.operatingSystemDistro}
OSResources:
instance?.cloudInstanceResource?.operatingSystemDistro &&
`${instance?.cloudInstanceResource?.operatingSystemDistro}
(${instance?.cloudInstanceResource?.operatingSystem})
`,
kernel: instance?.cloudInstanceResource?.kernelVersion,
Expand Down

0 comments on commit ecd1651

Please sign in to comment.