Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Run release
run: |
GITHUB_TOKEN=${{ secrets.GH_TOKEN }} \
PROJECT_NAME=semaphore \
PROJECT_NAME=semaphore-community \
GPG_KEY_ID="${{ vars.GPG_KEY_ID }}" \
task release:prod

Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: |
semaphoreui/semaphore
semaphoreui/semaphore-community
labels: |
org.opencontainers.image.vendor=SemaphoreUI
maintainer=Semaphore UI <support@semaphoreui.com>
Expand All @@ -110,7 +110,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: |
semaphoreui/runner
semaphoreui/runner-community
labels: |
org.opencontainers.image.vendor=SemaphoreUI
maintainer=Semaphore UI <support@semaphoreui.com>
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: |
semaphoreui/semaphore
semaphoreui/semaphore-community
labels: |
org.opencontainers.image.vendor=SemaphoreUI
maintainer=Semaphore UI <support@semaphoreui.com>
Expand Down Expand Up @@ -712,7 +712,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: |
semaphoreui/runner
semaphoreui/runner-community
labels: |
org.opencontainers.image.vendor=SemaphoreUI
maintainer=Semaphore UI <support@semaphoreui.com>
Expand Down
55 changes: 48 additions & 7 deletions .github/workflows/pro_selfhosted_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
APP_BUILD_TYPE=pro_selfhosted \
GITHUB_TOKEN=${{ secrets.GH_TOKEN }} \
GPG_KEY_ID="${{ vars.GPG_KEY_ID }}" \
PROJECT_NAME=semaphorepro \
PROJECT_NAME=semaphore \
task release:prod

deploy-prod:
Expand Down Expand Up @@ -88,6 +88,13 @@ jobs:
env:
AWS_REGION: us-east-1

- name: Docker Hub login
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}



- name: Server meta
Expand All @@ -97,6 +104,8 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: |
public.ecr.aws/semaphore/pro/server
public.ecr.aws/semaphore/server
semaphoreui/semaphore
labels: |
org.opencontainers.image.vendor=SemaphoreUI
maintainer=Semaphore UI <support@semaphoreui.com>
Expand All @@ -118,6 +127,9 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.server.outputs.labels }}
tags: ${{ steps.server.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false

- name: Server build with Ansible 2.16.5
uses: docker/build-push-action@v5
Expand All @@ -132,7 +144,13 @@ jobs:
platforms: linux/amd64,linux/arm64 # ,linux/arm/v6
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.server.outputs.labels }}
tags: public.ecr.aws/semaphore/pro/server:${{ github.ref_name }}-ansible2.16.5
tags: |
public.ecr.aws/semaphore/pro/server:${{ github.ref_name }}-ansible2.16.5
public.ecr.aws/semaphore/server:${{ github.ref_name }}-ansible2.16.5
semaphoreui/semaphore:${{ github.ref_name }}-ansible2.16.5
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false

- name: Server build with PowerShell 7.5.0
uses: docker/build-push-action@v5
Expand All @@ -141,15 +159,21 @@ jobs:
context: .
build-args: |
POWERSHELL_VERSION=7.5.0
SEMAPHORE_IMAGE=public.ecr.aws/semaphore/pro/server
SEMAPHORE_IMAGE=public.ecr.aws/semaphore/server
SEMAPHORE_VERSION=${{ github.ref_name }}
GH_TOKEN=${{ secrets.GH_TOKEN }}
APP_BUILD_TYPE=pro_selfhosted
file: deployment/docker/server/powershell/Dockerfile
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.server.outputs.labels }}
tags: public.ecr.aws/semaphore/pro/server:${{ github.ref_name }}-powershell7.5.0
tags: |
public.ecr.aws/semaphore/pro/server:${{ github.ref_name }}-powershell7.5.0
public.ecr.aws/semaphore/server:${{ github.ref_name }}-powershell7.5.0
semaphoreui/semaphore:${{ github.ref_name }}-powershell7.5.0
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false



Expand All @@ -160,6 +184,8 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: |
public.ecr.aws/semaphore/pro/runner
public.ecr.aws/semaphore/runner
semaphoreui/runner
labels: |
org.opencontainers.image.vendor=SemaphoreUI
maintainer=Semaphore UI <support@semaphoreui.com>
Expand All @@ -180,6 +206,9 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.runner.outputs.labels }}
tags: ${{ steps.runner.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false

- name: Runner build with Ansible 2.16.5
uses: docker/build-push-action@v5
Expand All @@ -193,7 +222,13 @@ jobs:
platforms: linux/amd64,linux/arm64 #,linux/arm/v6
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.runner.outputs.labels }}
tags: public.ecr.aws/semaphore/pro/runner:${{ github.ref_name }}-ansible2.16.5
tags: |
public.ecr.aws/semaphore/pro/runner:${{ github.ref_name }}-ansible2.16.5
public.ecr.aws/semaphore/runner:${{ github.ref_name }}-ansible2.16.5
semaphoreui/runner:${{ github.ref_name }}-ansible2.16.5
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false

- name: Runner build with PowerShell 7.5.0
uses: docker/build-push-action@v5
Expand All @@ -202,11 +237,17 @@ jobs:
context: .
build-args: |
POWERSHELL_VERSION=7.5.0
SEMAPHORE_IMAGE=public.ecr.aws/semaphore/pro/runner
SEMAPHORE_IMAGE=public.ecr.aws/semaphore/runner
SEMAPHORE_VERSION=${{ github.ref_name }}
GH_TOKEN=${{ secrets.GH_TOKEN }}
file: deployment/docker/server/powershell/Dockerfile
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.runner.outputs.labels }}
tags: public.ecr.aws/semaphore/pro/runner:${{ github.ref_name }}-powershell7.5.0
tags: |
public.ecr.aws/semaphore/pro/runner:${{ github.ref_name }}-powershell7.5.0
public.ecr.aws/semaphore/runner:${{ github.ref_name }}-powershell7.5.0
semaphoreui/runner:${{ github.ref_name }}-powershell7.5.0
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: |
GITHUB_TOKEN=${{ secrets.GH_TOKEN }} \
GPG_KEY_ID="${{ vars.GPG_KEY_ID }}" \
PROJECT_NAME=semaphore \
PROJECT_NAME=semaphore-community \
task release:prod

deploy-prod:
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: |
semaphoreui/semaphore
semaphoreui/semaphore-community
labels: |
org.opencontainers.image.vendor=SemaphoreUI
maintainer=Semaphore UI <support@semaphoreui.com>
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
platforms: linux/amd64,linux/arm64 # ,linux/arm/v6
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.server.outputs.labels }}
tags: semaphoreui/semaphore:${{ github.ref_name }}-ansible2.16.5
tags: semaphoreui/semaphore-community:${{ github.ref_name }}-ansible2.16.5

- name: Server build with PowerShell 7.5.0
uses: docker/build-push-action@v5
Expand All @@ -126,13 +126,13 @@ jobs:
context: .
build-args: |
POWERSHELL_VERSION=7.5.0
SEMAPHORE_IMAGE=semaphoreui/semaphore
SEMAPHORE_IMAGE=semaphoreui/semaphore-community
SEMAPHORE_VERSION=${{ github.ref_name }}
file: deployment/docker/server/powershell/Dockerfile
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.server.outputs.labels }}
tags: semaphoreui/semaphore:${{ github.ref_name }}-powershell7.5.0
tags: semaphoreui/semaphore-community:${{ github.ref_name }}-powershell7.5.0



Expand All @@ -142,7 +142,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: |
semaphoreui/runner
semaphoreui/runner-community
labels: |
org.opencontainers.image.vendor=SemaphoreUI
maintainer=Semaphore UI <support@semaphoreui.com>
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
platforms: linux/amd64,linux/arm64 #,linux/arm/v6
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.runner.outputs.labels }}
tags: semaphoreui/runner:${{ github.ref_name }}-ansible2.16.5
tags: semaphoreui/runner-community:${{ github.ref_name }}-ansible2.16.5

- name: Runner build with PowerShell 7.5.0
uses: docker/build-push-action@v5
Expand All @@ -182,10 +182,10 @@ jobs:
context: .
build-args: |
POWERSHELL_VERSION=7.5.0
SEMAPHORE_IMAGE=semaphoreui/runner
SEMAPHORE_IMAGE=semaphoreui/runner-community
SEMAPHORE_VERSION=${{ github.ref_name }}
file: deployment/docker/server/powershell/Dockerfile
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.runner.outputs.labels }}
tags: semaphoreui/runner:${{ github.ref_name }}-powershell7.5.0
tags: semaphoreui/runner-community:${{ github.ref_name }}-powershell7.5.0
9 changes: 8 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
dist: bin

before:
Expand Down Expand Up @@ -52,6 +53,8 @@ archives:
signs:
-
artifacts: checksum
signature: "{{ .Env.PROJECT_NAME }}_{{ .Version }}_checksums.txt.sig"
cmd: gpg
args: [
"-u", "{{ .Env.GPG_KEY_ID }}",
"--pinentry-mode", "loopback",
Expand All @@ -61,12 +64,15 @@ signs:
"--detach-sign", "${artifact}"
]

checksum:
name_template: "{{ .Env.PROJECT_NAME }}_{{ .Version }}_checksums.txt"

snapshot:
name_template: "{{ .Timestamp }}-{{ .ShortCommit }}-SNAPSHOT"

nfpms:
- file_name_template: "{{ .Env.PROJECT_NAME }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
package_name: "{{ .Env.PROJECT_NAME }}"
package_name: "semaphore"
description: Modern UI and powerful API for Ansible, Terraform, OpenTofu, PowerShell and other DevOps tools.
homepage: https://github.com/semaphoreui/semaphore
vendor: Semaphore UI
Expand All @@ -87,4 +93,5 @@ nfpms:

release:
draft: true
use_existing_draft: true
name_template: "{{.Tag}}"
4 changes: 2 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ tasks:
desc: Installs required tools to build and publish
vars:
SWAGGER_VERSION: v0.30.5
GORELEASER_VERSION: v1.25.1
GORELEASER_VERSION: v2.11.2
GOLINTER_VERSION: v1.57.2
cmds:
# - go install github.com/go-swagger/go-swagger/cmd/swagger@{{ .SWAGGER_VERSION }}
- go install github.com/goreleaser/goreleaser@{{ .GORELEASER_VERSION }}
- go install github.com/goreleaser/goreleaser/v2@{{ .GORELEASER_VERSION }}
# - go install github.com/golangci/golangci-lint/cmd/golangci-lint@{{ .GOLINTER_VERSION }}
dir: /tmp

Expand Down
Loading