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 c4aebe8 commit 1b821bc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/backup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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
5 changes: 1 addition & 4 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
environment:
name: test

steps:
- name: Display environment secret variable
run: echo ${{ secrets }} | jq .
shell: bash
run: echo ${{ secrets.DOCKER_USERNAME }}

# - name: Checkout Code
# uses: actions/checkout@v3
Expand Down

0 comments on commit 1b821bc

Please sign in to comment.