Skip to content

Commit

Permalink
Merge pull request #3 from lemois-1337/2023_cleanup_replace_kaspa_wit…
Browse files Browse the repository at this point in the history
…h_karlsen

[Docker][CI] Add GitHub workflows for auto-publishing
  • Loading branch information
lemois-1337 authored Nov 30, 2023
2 parents 22e0687 + 2ebd0fa commit da51fc6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 23 deletions.
28 changes: 9 additions & 19 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
*~

# Databases
kaspad.db
*-shm
*-wal

Expand All @@ -26,6 +25,5 @@ debug.test
__debug_bin
.DS_Store

cmd/kaspabridge/kaspabridge
cmd/kaspabridge/bridge.
release/
cmd/karlsenbridge/karlsenbridge
release/

0 comments on commit da51fc6

Please sign in to comment.