Skip to content

Commit

Permalink
add image releaser (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tankilevitch authored Jul 28, 2024
1 parent 58b8f74 commit 1b0f1a7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release Image

on:
push:
tags:
- 'v*.*.*' # Trigger on version tags

workflow_dispatch:


jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.DOCKER_MACHINE_USER }}
password: ${{ secrets.DOCKER_MACHINE_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/port-labs/port-sender:${{ github.ref_name }}

0 comments on commit 1b0f1a7

Please sign in to comment.