Skip to content

Commit 0b8aa91

Browse files
authored
feat(bridge): create workflow for publishing bridge image (#867)
1 parent cd41628 commit 0b8aa91

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.github/workflows/040_publish_activation_service_image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish Docker image
1+
name: Publish activation service image
22

33
on:
44
workflow_dispatch:
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Publish bridge image
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [published]
7+
8+
jobs:
9+
build-and-push:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
15+
steps:
16+
- name: Checkout the repo
17+
uses: actions/checkout@v3
18+
19+
- name: Log in to the Container registry
20+
uses: docker/login-action@v2.1.0
21+
with:
22+
registry: ghcr.io
23+
username: ${{ github.actor }}
24+
password: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- name: Extract metadata for Docker
27+
id: meta
28+
uses: docker/metadata-action@v4
29+
with:
30+
images: ghcr.io/threefoldtech/tfchain_stellar_bridge
31+
tags: |
32+
type=semver,pattern={{version}}
33+
34+
- name: Build and push Docker image
35+
uses: docker/build-push-action@v4
36+
with:
37+
file: ./bridge/tfchain_bridge/Dockerfile
38+
context: .
39+
push: true
40+
tags: ${{ steps.meta.outputs.tags }}
41+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)