diff --git a/.github/workflows/backup.yaml b/.github/workflows/backup.yaml new file mode 100644 index 00000000..3a0d7982 --- /dev/null +++ b/.github/workflows/backup.yaml @@ -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 diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml index 34ca4cad..98721dc5 100644 --- a/.github/workflows/dev.yaml +++ b/.github/workflows/dev.yaml @@ -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