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

Test VM Image build #1363

Open
wants to merge 6 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
34 changes: 24 additions & 10 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
packit_instances: ["prod", "stg"]
specfile_path: hello.spec
specfile_path: hello-world.spec
files_to_sync:
- .packit.yaml
- hello.spec
- hello-world.spec
upstream_package_name: hello
downstream_package_name: hello
# actions:
Expand All @@ -14,8 +14,28 @@ jobs:
- job: copr_build
trigger: pull_request
targets:
- fedora-stable-x86_64
- fedora-rawhide-x86_64
- fedora-all

- job: vm_image_build
trigger: pull_request
image_request:
architecture: x86_64
image_type: aws
upload_request:
type: aws
options:
share_with_accounts:
- "727920394381" # ARR
- "125523088429" # TF
- "564542550944" # ttomecek
share_with_sources: ["435116"]
image_customizations:
packages: [hello-world]
image_distribution: fedora-38
owner: packit
project: packit-hello-world-1363
copr_chroot: fedora-38-x86_64


- job: copr_build
trigger: release
Expand All @@ -28,12 +48,6 @@ jobs:
targets:
- fedora-stable

- job: tests
trigger: pull_request
targets:
- fedora-stable-x86_64
- fedora-rawhide-x86_64

- job: propose_downstream
trigger: release
packit_instances: ["stg"]
Expand Down
4 changes: 2 additions & 2 deletions hello.spec → hello-world.spec
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Name: hello
Name: hello-world
Version: 0.1.0
Release: 1%{?dist}
Summary: Nice and a polite tool to make your day
License: MIT
URL: https://github.com/packit-service/hello-world
Source0: hello-%{version}.tar.gz
Source0: hello-world-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Expand Down
2 changes: 1 addition & 1 deletion hello_world/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def main():
args_n = len(sys.argv)
if args_n <= 1 or args_n > 2:
usage()
print(f"Hello {sys.argv[1]}")
print(f"Hello \033[0;36m{sys.argv[1]}\033[0m")


if __name__ == '__main__':
Expand Down