Skip to content

Commit 1b0f1a7

Browse files
authored
add image releaser (#23)
1 parent 58b8f74 commit 1b0f1a7

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release Image
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*' # Trigger on version tags
7+
8+
workflow_dispatch:
9+
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
22+
- name: Log in to Docker Hub
23+
uses: docker/login-action@v3
24+
with:
25+
registry: ghcr.io
26+
username: ${{ secrets.DOCKER_MACHINE_USER }}
27+
password: ${{ secrets.DOCKER_MACHINE_TOKEN }}
28+
29+
- name: Build and push
30+
uses: docker/build-push-action@v6
31+
with:
32+
push: true
33+
platforms: linux/amd64,linux/arm64
34+
tags: ghcr.io/port-labs/port-sender:${{ github.ref_name }}

0 commit comments

Comments
 (0)