From 07d02b74ccdf8b2027d709929cd701a9eb0518e5 Mon Sep 17 00:00:00 2001 From: Malte Hansen Date: Tue, 3 Dec 2024 12:23:29 +0100 Subject: [PATCH] Add GitHub workflow to build init-cassandra image --- .github/workflows/deploy-init-cassandra.yml | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/deploy-init-cassandra.yml diff --git a/.github/workflows/deploy-init-cassandra.yml b/.github/workflows/deploy-init-cassandra.yml new file mode 100644 index 0000000..1f83edf --- /dev/null +++ b/.github/workflows/deploy-init-cassandra.yml @@ -0,0 +1,24 @@ +name: Init-Cassandra Pipeline + +on: + push: + + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Log in to Docker Container Registry + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Build and push multi-arch Docker image + run: | + docker buildx build \ + --file init-cassandra.Dockerfile + --platform linux/amd64,linux/arm64 \ + --tag explorviz/init-cassandra:latest . \ + --push