Skip to content

Commit 760f5b5

Browse files
authored
Merge pull request #165 from xpladev/chore/docker
ci: docker build
2 parents a984d4f + 29983f3 commit 760f5b5

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/docker-publish.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Create and Push Docker Image
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
tags:
8+
- "v[0-9]+\\.[0-9]+\\.[0-9]+"
9+
- "v[0-9]+\\.[0-9]+\\.[0-9]+-*"
10+
11+
jobs:
12+
build-and-push-image:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
18+
steps:
19+
- name: Set up QEMU
20+
uses: docker/setup-qemu-action@v2
21+
22+
- name: Log in to the Container registry
23+
uses: docker/login-action@v2
24+
with:
25+
registry: ghcr.io
26+
username: ${{ github.actor }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
28+
29+
- name: Build and push Docker image
30+
uses: strangelove-ventures/[email protected]
31+
with:
32+
chain: xpla
33+
dockerfile: cosmos
34+
build-target: make install
35+
pre-build:
36+
apk add --update --no-cache binutils-gold
37+
binaries: |
38+
- /go/bin/xplad

0 commit comments

Comments
 (0)