From e16d2e3f65b38474ea00ff8eea3bc1c42b4472fa Mon Sep 17 00:00:00 2001 From: tiagobento10 <1201087@isep.ipp.pt> Date: Sat, 18 May 2024 11:08:59 +0100 Subject: [PATCH] feat: adding basic pipeline.yml --- .github/workflows/pipeline.yml | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/pipeline.yml diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml new file mode 100644 index 00000000..aae4c8a7 --- /dev/null +++ b/.github/workflows/pipeline.yml @@ -0,0 +1,42 @@ +name: CI/CD Pipeline + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Build Docker images + run: docker-compose -f docker-compose.yml build + + - name: Save Docker images + run: | + docker save resource_server > resource_server.tar + docker save authorization_server > authorization_server.tar + docker save client > client.tar + + - name: Upload Docker images + uses: actions/upload-artifact@v3 + with: + name: resource_server + path: resource_server.tar + + - name: Upload Docker images + uses: actions/upload-artifact@v3 + with: + name: authorization_server + path: authorization_server.tar + + - name: Upload Docker images + uses: actions/upload-artifact@v3 + with: + name: client + path: client.tar \ No newline at end of file