- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1963 from tboerger/refactor-docker-and-build
Refactoring/Restructuring for Docker, Compose and Taskfile
- v2.12.14
- v2.12.13
- v2.12.12
- v2.12.11
- v2.12.10
- v2.12.9
- v2.12.8
- v2.12.7
- v2.12.6
- v2.12.5
- v2.12.4
- v2.12.3
- v2.12.2
- v2.12.1
- v2.12.0
- v2.12.0-beta9
- v2.12.0-beta8
- v2.12.0-beta7
- v2.12.0-beta6
- v2.12.0-beta5
- v2.12.0-beta4
- v2.12.0-beta3
- v2.12.0-beta2
- v2.12.0-beta1
- v2.11.3
- v2.11.2
- v2.11.1
- v2.11.0-rc1
- v2.11.0-beta9
- v2.11.0-beta8
- v2.11.0-beta7
- v2.11.0-beta6
- v2.11.0-beta5
- v2.11.0-beta4
- v2.11.0-beta3
- v2.11.0-beta2
- v2.11.0-beta1
- v2.10.43
- v2.10.42
- v2.10.35
- v2.10.34
- v2.10.33
- v2.10.32
- v2.10.31
- v2.10.30
- v2.10.29
- v2.10.28
- v2.10.27
- v2.10.26-beta
- v2.10.25-beta
- v2.10.24-beta
- v2.10.23-beta
- v2.10.22
- v2.10.21
- v2.10.20
- v2.10.19
- v2.10.18
- v2.10.17-beta
- v2.10.16-beta
- v2.10.15-beta
- v2.10.14-beta
- v2.10.13-beta
- v2.10.12-beta
- v2.10.11
- v2.10.9-beta
- v2.10.8-beta
- v2.10.7
- v2.10.6-beta
- v2.10.5-beta
- v2.10.4-beta
- v2.10.3-beta
- v2.10.2
- v2.10.1-beta
- v2.9.113-beta
- v2.9.112
- v2.9.111-beta
- v2.9.110-beta
- v2.9.109
- v2.9.108-beta
- v2.9.104-beta
- v2.9.103-beta
- v2.9.102-beta
- v2.9.100-beta
- v2.9.99-beta
- v2.9.98-beta
- v2.9.93-beta
- v2.9.92-beta
- v2.9.91-beta
- v2.9.13-beta
Showing
77 changed files
with
1,948 additions
and
1,422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
web/node_modules/ | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,127 @@ | ||
name: Beta | ||
on: | ||
|
||
'on': | ||
push: | ||
tags: | ||
- v*-beta | ||
|
||
jobs: | ||
pre-release: | ||
runs-on: [ubuntu-latest] | ||
prerelease: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: { go-version: '1.21' } | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: { node-version: '16' } | ||
- name: Setup golang | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '^1.21.0' | ||
|
||
- run: go install github.com/go-task/task/v3/cmd/task@latest | ||
- name: Setup nodejs | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '16' | ||
cache: 'npm' | ||
cache-dependency-path: web/package-lock.json | ||
|
||
- run: sudo apt update && sudo apt-get install rpm | ||
- name: Install go-task | ||
run: | | ||
go install github.com/go-task/task/v3/cmd/task@latest | ||
- uses: actions/checkout@v3 | ||
- name: Install rpm | ||
run: | | ||
sudo apt update && sudo apt-get install rpm | ||
- run: task deps | ||
- name: Install deps | ||
run: | | ||
task deps | ||
- run: | | ||
echo ${{ secrets.GPG_KEY }} | tr " " "\n" | base64 -d | gpg --import --batch | ||
- name: Import gnupg | ||
run: | | ||
echo "${{ secrets.GPG_KEY }}" | tr " " "\n" | base64 -d | gpg --import --batch | ||
gpg --sign -u "58A7 CC3D 8A9C A2E5 BB5C 141D 4064 23EA F814 63CA" --pinentry-mode loopback --yes --batch --passphrase "${{ secrets.GPG_PASS }}" --output unlock.sig --detach-sign README.md | ||
rm -f unlock.sig | ||
- run: git reset --hard | ||
|
||
- run: GITHUB_TOKEN=${{ secrets.GH_TOKEN }} task release:prod | ||
- name: Reset repo | ||
run: | | ||
git reset --hard | ||
- name: Run release | ||
run: | | ||
GITHUB_TOKEN=${{ secrets.GH_TOKEN }} task release:prod | ||
deploy-beta: | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: { go-version: '1.21' } | ||
|
||
- run: go install github.com/go-task/task/v3/cmd/task@latest | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'semaphoreui' | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- run: context=prod task docker:test | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
|
||
- uses: docker/setup-qemu-action@v2 | ||
- name: Setup qemu | ||
id: qemu | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- uses: docker/setup-buildx-action@v2 | ||
- name: Setup buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
- name: Hub login | ||
uses: docker/login-action@v3 | ||
if: github.event_name != 'pull_request' | ||
with: | ||
username: ${{ secrets.DOCKER_USER }} | ||
password: ${{ secrets.DOCKER_PASS }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v3 | ||
- name: Server meta | ||
id: server | ||
uses: docker/metadata-action@v5 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
images: | | ||
semaphoreui/semaphore | ||
labels: | | ||
org.opencontainers.image.vendor=SemaphoreUI | ||
maintainer=Semaphore UI <support@semui.co> | ||
tags: | | ||
type=raw,value=${{ github.ref_name }} | ||
flavor: | | ||
latest=false | ||
- name: Server build | ||
uses: docker/build-push-action@v5 | ||
with: | ||
builder: ${{ steps.buildx.outputs.name }} | ||
context: . | ||
file: deployment/docker/server/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
file: ./deployment/docker/prod/buildx.Dockerfile | ||
push: true | ||
tags: semaphoreui/semaphore:beta,semaphoreui/semaphore:${{ github.ref_name }} | ||
push: ${{ github.event_name != 'pull_request' }} | ||
labels: ${{ steps.server.outputs.labels }} | ||
tags: ${{ steps.server.outputs.tags }} | ||
|
||
|
||
|
||
- name: Build and push runner | ||
uses: docker/build-push-action@v3 | ||
- name: Runner meta | ||
id: runner | ||
uses: docker/metadata-action@v5 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
images: | | ||
semaphoreui/runner | ||
labels: | | ||
org.opencontainers.image.vendor=SemaphoreUI | ||
maintainer=Semaphore UI <support@semui.co> | ||
tags: | | ||
type=raw,value=${{ github.ref_name }} | ||
flavor: | | ||
latest=false | ||
- name: Runner build | ||
uses: docker/build-push-action@v5 | ||
with: | ||
builder: ${{ steps.buildx.outputs.name }} | ||
context: . | ||
file: deployment/docker/runner/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
file: ./deployment/docker/prod/runner.buildx.Dockerfile | ||
push: true | ||
tags: semaphoreui/runner:beta,semaphoreui/runner:${{ github.ref_name }} | ||
push: ${{ github.event_name != 'pull_request' }} | ||
labels: ${{ steps.runner.outputs.labels }} | ||
tags: ${{ steps.runner.outputs.tags }} |
Oops, something went wrong.