diff --git a/.forgejo/workflows/production-build.yml b/.forgejo/workflows/production-build.yml index 38b973e..1227d72 100644 --- a/.forgejo/workflows/production-build.yml +++ b/.forgejo/workflows/production-build.yml @@ -55,9 +55,9 @@ jobs: needs: build runs-on: docker steps: - - name: Setup Node environment + - name: Setup environment run: | - apk add --update nodejs npm + apk --no-cache add --update nodejs npm curl - name: Code checkout uses: actions/checkout@v4 with: @@ -101,7 +101,15 @@ jobs: docker image tag ${{ env.CONTAINER_NAME }}:latest ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.CONTAINER_NAME }}:${{ steps.prepare-env.outputs.VERSION }} docker image push ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.CONTAINER_NAME }}:${{ steps.prepare-env.outputs.VERSION }} - name: Server deploy - run: | - echo "Deploy to server not implemented yet." + uses: https://git.burcusel.nl/public/ssh-action@v1.2.6 + with: + host: ${{ secrets.DEPLOY_HOST }} + username: ${{ secrets.DEPLOY_USER }} + key: ${{ secrets.DEPLOY_KEY }} + script: | + cd /opt/glowing-fiesta + docker compose down + docker compose pull + docker compose up -d #### diff --git a/app/layouts/default/Footer.vue b/app/layouts/default/Footer.vue index e14780f..d480532 100644 --- a/app/layouts/default/Footer.vue +++ b/app/layouts/default/Footer.vue @@ -5,5 +5,6 @@ const currentYear = new Date().getFullYear(); diff --git a/tests/layouts/default/Footer.test.ts b/tests/layouts/default/Footer.test.ts index 7fa2cd2..211896a 100644 --- a/tests/layouts/default/Footer.test.ts +++ b/tests/layouts/default/Footer.test.ts @@ -32,7 +32,7 @@ describe("Footer.vue", () => { mockDate(2025); const wrapper = mount(Footer); - expect(wrapper.text()).toBe("Glowing Fiesta 2025"); + expect(wrapper.text()).toBe("Glowing Fiesta 2025(with auto-deploy)"); expect(wrapper.text()).not.toContain(" - "); }); @@ -40,7 +40,7 @@ describe("Footer.vue", () => { mockDate(2034); const wrapper = mount(Footer); - expect(wrapper.text()).toBe("Glowing Fiesta 2025 - 2034"); + expect(wrapper.text()).toBe("Glowing Fiesta 2025 - 2034(with auto-deploy)"); }); it("has proper structure / content", () => { @@ -49,6 +49,6 @@ describe("Footer.vue", () => { expect(footer.exists()).toBe(true); expect(footer.element.tagName).toBe("FOOTER"); - expect(wrapper.findAll("div")).toHaveLength(1); + expect(wrapper.findAll("div")).toHaveLength(2); }); });