From 61b27c9089bda741ef910219f7411b7025b70a00 Mon Sep 17 00:00:00 2001 From: Luka Savkov Date: Fri, 13 Sep 2024 19:43:50 +0200 Subject: [PATCH 1/3] Set up GitHub Actions for CI --- .github/workflows/push.yml | 68 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/push.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..58ac0b3 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,68 @@ +name: Go CI + +on: + push: + branches: + - master + +jobs: + go-ci: + runs-on: ubuntu-latest + + steps: + - name: Check out main repository + uses: actions/checkout@v4 + + - name: Check additional repo + uses: actions/checkout@v4 + with: + repository: 'c12s/magnetar' + path: 'magnetar' + + - name: Move magnetar to parent directory + run: mv magnetar ../magnetar + + - name: Check additional repo + uses: actions/checkout@v4 + with: + repository: 'c12s/oort' + path: 'oort' + + - name: Move oort to parent directory + run: mv oort ../oort + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.22.3' + + - name: Update and tidy Go modules + run: go mod tidy + + - name: Install dependencies + run: go mod download + working-directory: ./ + + - name: Build + run: go build -v ./... + working-directory: ./ + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to DockerHub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and Push Docker Image + uses: docker/build-push-action@v6 + with: + context: .. + file: ../apollo/Dockerfile + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/apollo:latest From 4f69c0887e1c7382e7232183e85fade9fb0321a8 Mon Sep 17 00:00:00 2001 From: Luka Savkov Date: Fri, 3 Oct 2025 18:23:44 +0200 Subject: [PATCH 2/3] test --- test.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test.txt diff --git a/test.txt b/test.txt new file mode 100644 index 0000000..e69de29 From 9eb46e2aa439d1023dacc2ab07460229d0cd43d0 Mon Sep 17 00:00:00 2001 From: Luka Savkov Date: Fri, 3 Oct 2025 18:26:47 +0200 Subject: [PATCH 3/3] delete test --- test.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 test.txt diff --git a/test.txt b/test.txt deleted file mode 100644 index e69de29..0000000