From b16bc1a5bbf115a884e80aac3e4c7d8af18f9f7f Mon Sep 17 00:00:00 2001 From: Luke Gustafson Date: Wed, 27 Nov 2024 00:39:02 +0000 Subject: [PATCH] Commit --- .github/workflows/docker-image.yml | 7 ++++ .../User/History/-75aa7516/3EZP.yml | 40 +++++++++++++++++++ .../User/History/-75aa7516/entries.json | 2 +- 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 .local/share/code-server/User/History/-75aa7516/3EZP.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1adb002e..3ab94469 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,3 +1,10 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - main + jobs: build: runs-on: ubuntu-latest diff --git a/.local/share/code-server/User/History/-75aa7516/3EZP.yml b/.local/share/code-server/User/History/-75aa7516/3EZP.yml new file mode 100644 index 00000000..3ab94469 --- /dev/null +++ b/.local/share/code-server/User/History/-75aa7516/3EZP.yml @@ -0,0 +1,40 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install dependencies and build frontend + run: | + cd frontend + npm install + npm run build + ls -R . # Debugging: List files in frontend after build + + - name: Debug workspace structure + run: ls -R /github/workspace # Debugging: Verify where `dist` is created + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Set up Docker login to GHCR + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build Docker image + run: | + docker build -f docker/Dockerfile . --tag ghcr.io/$REPO_NAME/ssh-project:$DATE_TAG + + - name: Push Docker image to GHCR + run: docker push ghcr.io/$REPO_NAME/ssh-project:$DATE_TAG \ No newline at end of file diff --git a/.local/share/code-server/User/History/-75aa7516/entries.json b/.local/share/code-server/User/History/-75aa7516/entries.json index e8a448f2..45f4133b 100644 --- a/.local/share/code-server/User/History/-75aa7516/entries.json +++ b/.local/share/code-server/User/History/-75aa7516/entries.json @@ -1 +1 @@ -{"version":1,"resource":"vscode-remote://coder.karmaashomepage.online/home/bugattiguy527/.github/workflows/docker-image.yml","entries":[{"id":"9X2e.yml","timestamp":1732667889336}]} \ No newline at end of file +{"version":1,"resource":"vscode-remote://coder.karmaashomepage.online/home/bugattiguy527/.github/workflows/docker-image.yml","entries":[{"id":"9X2e.yml","timestamp":1732667889336},{"id":"3EZP.yml","timestamp":1732667936044}]} \ No newline at end of file