From 3874ee8b82bdd2b4ed04e76a2e0959e8ed16c468 Mon Sep 17 00:00:00 2001 From: Srikanth L Date: Mon, 14 Aug 2023 10:12:31 +0000 Subject: [PATCH] docker push to ghcr --- .github/workflows/deploy.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b1d592e..cd67107 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,8 +3,8 @@ name: CI/CD Pipeline on: workflow_dispatch: push: - branches: [ "main" ] - paths: [ '!PostmanCollections/**' , '!./github/**' ] + branches: ["main"] + paths: ["!PostmanCollections/**", "!./github/**"] jobs: build_and_test: @@ -29,7 +29,7 @@ jobs: - name: Install Dependencies run: npm ci - + - name: Start Server run: npm start & npx wait-on http://localhost:3000 @@ -61,9 +61,9 @@ jobs: - name: Build and Push Docker Image run: | docker buildx create --use - docker buildx build --platform linux/amd64 -t ghcr.io/${{ github.repository }}:latest --push. + docker buildx build --platform linux/amd64 -t ghcr.io/${{ github.repository }}:latest --push . docker buildx stop - + deploy_to_fly: needs: build_and_push_docker_image runs-on: ubuntu-latest @@ -71,10 +71,10 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v3 - + - name: Get FlyCtl uses: superfly/flyctl-actions/setup-flyctl@master - + - name: start deployment uses: bobheadxi/deployments@v1 id: deployment @@ -83,7 +83,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} env: Fly - - name: Deploy to Fly + - name: Deploy to Fly run: | flyctl deploy --remote-only env: @@ -105,4 +105,4 @@ jobs: path: ~/.fly key: ${{ runner.os }}-flyctl restore-keys: | - ${{ runner.os }}-flyctl- \ No newline at end of file + ${{ runner.os }}-flyctl-