From 1b0f1a751e8ec0ce3d965c45fa696fc76e63e052 Mon Sep 17 00:00:00 2001 From: Tom Tankilevitch <59158507+Tankilevitch@users.noreply.github.com> Date: Sun, 28 Jul 2024 11:48:29 +0300 Subject: [PATCH] add image releaser (#23) --- .github/workflows/release.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..da9c1d9 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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 }}