Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Build container in Zuul #31

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
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
25 changes: 0 additions & 25 deletions .github/workflows/go.yml

This file was deleted.

47 changes: 30 additions & 17 deletions .zuul.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
---
# Go jobs
- job:
name: scs-status-page-go-lint
parent: golangci-lint
nodeset:
nodes:
- name: ubuntu-jammy
label: ubuntu-jammy
nodeset: pod-fedora-40
vars:
golangci_lint_version: 1.60.3
go_version: 1.23.0
Expand All @@ -14,25 +12,37 @@
- job:
name: scs-status-page-go-test
parent: golang-go
nodeset:
nodes:
- name: ubuntu-jammy
label: ubuntu-jammy
nodeset: pod-fedora-40
vars:
go_command: test ./...
go_version: 1.23.0

# Container jobs
- job:
name: scs-status-page-go-build
parent: golang-go
nodeset:
nodes:
- name: ubuntu-jammy
label: ubuntu-jammy
# Build speculative container to check changes.
name: scs-status-page-build-container-image
parent: scs-build-container-image
vars:
go_command: build cmd/status-page-api/main.go
go_version: 1.23.0
container_images: &status-page-build-container-image
- context: "."
container_filename: Containerfile
registry: registry.scs.community
repository: registry.scs.community/status-page/status-page-api

- job:
# Build and upload container to registry.
name: scs-status-page-upload-container-image
parent: scs-upload-container-image
vars:
upload_container_image_promote: false
container_images:
<<: *status-page-build-container-image
tags:
- latest
- "{{ zuul.tag }}"


# Project settings
- project:
name: SovereignCloudStack/status-page-api
merge-mode: squash-merge
Expand All @@ -41,4 +51,7 @@
jobs:
- scs-status-page-go-lint
- scs-status-page-go-test
- scs-status-page-go-build
- scs-status-page-build-container-image
tag:
jobs:
- scs-status-page-upload-container-image