From d47f2cbe8a760079e2d45f15b8cbe3ffceb78f83 Mon Sep 17 00:00:00 2001 From: Lemois 1337 Date: Thu, 30 Nov 2023 12:41:07 +0100 Subject: [PATCH 1/2] Corrected .gitignore --- .gitignore | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index ca45141..fbaca5a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ *~ # Databases -kaspad.db *-shm *-wal @@ -26,6 +25,5 @@ debug.test __debug_bin .DS_Store -cmd/kaspabridge/kaspabridge -cmd/kaspabridge/bridge. -release/ \ No newline at end of file +cmd/karlsenbridge/karlsenbridge +release/ From 2ebd0fae0845f34ec50597a1895b5b38067bd9ce Mon Sep 17 00:00:00 2001 From: Lemois 1337 Date: Thu, 30 Nov 2023 12:44:12 +0100 Subject: [PATCH 2/2] Updated GitHub workflow to automatically publish Docker image --- .github/workflows/docker-image.yml | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 87b0d4f..35efb04 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -3,42 +3,32 @@ name: Docker Image CI on: push: branches: [ main ] -jobs: +jobs: build: - runs-on: ubuntu-latest env: DOCKER_PLATFORMS: linux/amd64 - - steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v3 - - - name: Set up QEMU + - name: Set up QEMU uses: docker/setup-qemu-action@v1 - - - name: setup docker buildx + - name: setup docker buildx uses: docker/setup-buildx-action@v1 id: buildx with: install: true - - - name: Login to DockerHub + - name: Login to DockerHub uses: docker/login-action@v1 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build the Docker image - run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes && docker buildx build --platform linux/amd64 -t onemorebsmith/kaspa_bridge:latest --progress=plain --push . - - - name: Build and push + - name: Build the Docker image + run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes && docker buildx build --platform linux/amd64 -t karlsennetwork/karlsen_bridge:latest --progress=plain --push . + - name: Build and push uses: docker/build-push-action@v2 with: context: . push: true - tags: onemorebsmith/kaspa_bridge:latest - + tags: karlsennetwork/karlsen_bridge:latest