Skip to content

Commit

Permalink
ci: add Publish workflow
Browse files Browse the repository at this point in the history
Also rename a shell script to have a more truthful name.
  • Loading branch information
odzhychko committed Jan 11, 2024
1 parent 60e5a02 commit 4a86493
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 21 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Publish

on:
push:
tags:
- '**'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Execute Gradle build
run: ./gradlew build

# Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
DOCKER_HUB_USER: ${{ secrets.DOCKER_HUB_USER }}
DOCKER_HUB_KEY: ${{ secrets.DOCKER_HUB_KEY }}

- name: Build and Publish Docker
run: ./docker-build-local-and-publish-on-ci-all.sh
21 changes: 0 additions & 21 deletions docker-build-all.sh

This file was deleted.

21 changes: 21 additions & 0 deletions docker-build-local-and-publish-on-ci-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh

set -e
set -x

(
cd instances-manager
./docker-build-local-and-publish-on-ci.sh
)
(
cd workspace-client
./docker-build-local-and-publish-on-ci.sh
)
(
cd workspace-job
./docker-build-local-and-publish-on-ci.sh
)
(
cd workspace-manager
./docker-build-local-and-publish-on-ci.sh
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4a86493

Please sign in to comment.