From c03f2f5e602df432d663b351d4877defd244c29d Mon Sep 17 00:00:00 2001 From: charadon Date: Tue, 31 May 2022 04:00:41 +0000 Subject: Update .gitlab-ci.yml file --- .gitlab-ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..b91c84f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,30 @@ +# This file is a template, and might need editing before it works on your project. +# To contribute improvements to CI/CD templates, please follow the Development guide at: +# https://docs.gitlab.com/ee/development/cicd/templates.html +# This specific template is located at: +# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml + +# This is a sample GitLab CI/CD configuration file that should run without any modifications. +# It demonstrates a basic 3 stage CI/CD pipeline. Instead of real tests or scripts, +# it uses echo commands to simulate the pipeline execution. +# +# A pipeline is composed of independent jobs that run scripts, grouped into stages. +# Stages run in sequential order, but jobs within stages run in parallel. +# +# For more information, see: https://docs.gitlab.com/ee/ci/yaml/index.html#stages + +stages: # List of stages for jobs, and their order of execution + - build + - deploy + +build-job: # This job runs in the build stage, which runs first. + stage: build + script: + - flatpak-builder --user --force-clean --repo=/tmp/flatpak-export flatpak net.iotib.Pong.yml + - flatpak build-bundle /tmp/flatpak-export net.iotib.Pong.flatpak net.iotib.Pong 0.1 + +deploy-job: # This job runs in the deploy stage. + stage: deploy # It only runs when *both* jobs in the test stage complete successfully. + script: + - echo "Deploying application..." + - echo "Application successfully deployed." -- cgit 1.4.1-2-gfad0 From 0f7bc52ac3431ffc58e222705511ab8529e801dc Mon Sep 17 00:00:00 2001 From: charadon Date: Tue, 31 May 2022 04:02:24 +0000 Subject: Update .gitlab-ci.yml file --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b91c84f..9926b06 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,6 +20,8 @@ stages: # List of stages for jobs, and their order of execution build-job: # This job runs in the build stage, which runs first. stage: build script: + - apk add flatpak + - apk add flatpak-builder - flatpak-builder --user --force-clean --repo=/tmp/flatpak-export flatpak net.iotib.Pong.yml - flatpak build-bundle /tmp/flatpak-export net.iotib.Pong.flatpak net.iotib.Pong 0.1 -- cgit 1.4.1-2-gfad0 From 8095c828ad965359358b2730cdb901699f799a55 Mon Sep 17 00:00:00 2001 From: charadon Date: Tue, 31 May 2022 04:03:19 +0000 Subject: Update .gitlab-ci.yml file --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9926b06..c540eaa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,8 @@ build-job: # This job runs in the build stage, which runs first. script: - apk add flatpak - apk add flatpak-builder + - flatpak install org.freedesktop.Sdk/x86_64/21.08 + - flatpak install org.freedesktop.Platform/x86_64/21.08 - flatpak-builder --user --force-clean --repo=/tmp/flatpak-export flatpak net.iotib.Pong.yml - flatpak build-bundle /tmp/flatpak-export net.iotib.Pong.flatpak net.iotib.Pong 0.1 -- cgit 1.4.1-2-gfad0 From 152bc8f22fdd07b67a36b97a3f2d6cba167500c8 Mon Sep 17 00:00:00 2001 From: charadon Date: Tue, 31 May 2022 04:04:12 +0000 Subject: Update .gitlab-ci.yml file --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c540eaa..df1dc9b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,7 @@ build-job: # This job runs in the build stage, which runs first. script: - apk add flatpak - apk add flatpak-builder + - flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - flatpak install org.freedesktop.Sdk/x86_64/21.08 - flatpak install org.freedesktop.Platform/x86_64/21.08 - flatpak-builder --user --force-clean --repo=/tmp/flatpak-export flatpak net.iotib.Pong.yml -- cgit 1.4.1-2-gfad0 From 28f06c9370d1605795abc8f7f7ac6307ebd22d6b Mon Sep 17 00:00:00 2001 From: charadon Date: Tue, 31 May 2022 04:06:14 +0000 Subject: Update .gitlab-ci.yml file --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index df1dc9b..7cc4fa0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,8 +23,8 @@ build-job: # This job runs in the build stage, which runs first. - apk add flatpak - apk add flatpak-builder - flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - - flatpak install org.freedesktop.Sdk/x86_64/21.08 - - flatpak install org.freedesktop.Platform/x86_64/21.08 + - flatpak install -y org.freedesktop.Sdk/x86_64/21.08 + - flatpak install -y org.freedesktop.Platform/x86_64/21.08 - flatpak-builder --user --force-clean --repo=/tmp/flatpak-export flatpak net.iotib.Pong.yml - flatpak build-bundle /tmp/flatpak-export net.iotib.Pong.flatpak net.iotib.Pong 0.1 -- cgit 1.4.1-2-gfad0 From 2360e98aadf15710576c6a8d0fe0bb6225b1914d Mon Sep 17 00:00:00 2001 From: charadon Date: Tue, 31 May 2022 04:10:47 +0000 Subject: Update .gitlab-ci.yml file --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7cc4fa0..c4af88d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,7 @@ build-job: # This job runs in the build stage, which runs first. script: - apk add flatpak - apk add flatpak-builder + - chmod u+s /usr/bin/bwrap - flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - flatpak install -y org.freedesktop.Sdk/x86_64/21.08 - flatpak install -y org.freedesktop.Platform/x86_64/21.08 -- cgit 1.4.1-2-gfad0 From fc4dbe4389975d2366a2ece6ac5d914fa35ff49f Mon Sep 17 00:00:00 2001 From: charadon Date: Tue, 31 May 2022 04:12:47 +0000 Subject: Update .gitlab-ci.yml file --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c4af88d..5a48d8c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,6 +23,7 @@ build-job: # This job runs in the build stage, which runs first. - apk add flatpak - apk add flatpak-builder - chmod u+s /usr/bin/bwrap + - sysctl kernel.unprivileged_userns_clone=1 - flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - flatpak install -y org.freedesktop.Sdk/x86_64/21.08 - flatpak install -y org.freedesktop.Platform/x86_64/21.08 -- cgit 1.4.1-2-gfad0 From 35bd7f4a3f0f43c6099dcbd7315d934aa57fdd0b Mon Sep 17 00:00:00 2001 From: charadon Date: Tue, 31 May 2022 04:22:24 +0000 Subject: Update .gitlab-ci.yml file --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5a48d8c..c3789a3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,7 +23,7 @@ build-job: # This job runs in the build stage, which runs first. - apk add flatpak - apk add flatpak-builder - chmod u+s /usr/bin/bwrap - - sysctl kernel.unprivileged_userns_clone=1 + - sysctl kernel.unprivileged_userns_clone - flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - flatpak install -y org.freedesktop.Sdk/x86_64/21.08 - flatpak install -y org.freedesktop.Platform/x86_64/21.08 -- cgit 1.4.1-2-gfad0