Skip to content

Commit

Permalink
Ensure buildstrap is up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
dvershinin committed Sep 15, 2024
1 parent d4956ab commit 0eafece
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ executors:
parameters:
dist:
type: string
arch:
type: string
docker:
- image: kroniak/ssh-client
working_directory: /output
environment:
DISTRO: << parameters.dist >>
ARCH: << parameters.arch >>
rpmbuilder:
parameters:
dist:
Expand Down Expand Up @@ -61,9 +64,13 @@ jobs:
dist:
description: "The dist tag of OS to deploy for"
type: string
arch:
description: "The architecture to deploy for"
type: string
executor:
name: deploy
dist: << parameters.dist >>
arch: << parameters.arch >>
steps:
- attach_workspace:
at: /output
Expand All @@ -75,18 +82,18 @@ jobs:
command: >
ssh -o StrictHostKeyChecking=no
$GPS_BUILD_USER@$GPS_BUILD_SERVER
"mkdir -p ~/incoming/$CIRCLE_PROJECT_REPONAME/$DISTRO"
"mkdir -p ~/incoming/${CIRCLE_PROJECT_REPONAME}/${DISTRO}/${ARCH}/${CIRCLE_BRANCH}"
- run:
name: "Deploy all RPMs to GetPageSpeed repo."
command: >
scp -o StrictHostKeyChecking=no -q -r *.rpm
$GPS_BUILD_USER@$GPS_BUILD_SERVER:~/incoming/$CIRCLE_PROJECT_REPONAME/$DISTRO/
$GPS_BUILD_USER@$GPS_BUILD_SERVER:~/incoming/${CIRCLE_PROJECT_REPONAME}/${DISTRO}/${ARCH}/${CIRCLE_BRANCH}/
- run:
name: "Trigger Deploy Hook."
command: >
ssh -o StrictHostKeyChecking=no -q
$GPS_BUILD_USER@$GPS_BUILD_SERVER
"nohup ~/scripts/incoming.sh $CIRCLE_PROJECT_REPONAME/$DISTRO/ > ~/incoming/$CIRCLE_PROJECT_REPONAME/$DISTRO/process.log 2>&1&"
"nohup ~/scripts/incoming.sh ${CIRCLE_PROJECT_REPONAME}/${DISTRO}/${ARCH}/${CIRCLE_BRANCH}/ > ~/incoming/$CIRCLE_PROJECT_REPONAME/$DISTRO/${ARCH}/${CIRCLE_BRANCH}/process.log 2>&1&"
workflows:
build-deploy-amzn2-aarch64:
jobs:
Expand All @@ -98,6 +105,7 @@ workflows:
name: build-amzn2-aarch64
resource_class: arm.medium
- deploy:
arch: aarch64
context: org-global
dist: amzn2
filters:
Expand All @@ -114,6 +122,7 @@ workflows:
tags: {only: /.*/}
name: build-amzn2-x86_64
- deploy:
arch: x86_64
context: org-global
dist: amzn2
filters:
Expand All @@ -131,6 +140,7 @@ workflows:
name: build-amzn2023-aarch64
resource_class: arm.medium
- deploy:
arch: aarch64
context: org-global
dist: amzn2023
filters:
Expand All @@ -147,6 +157,7 @@ workflows:
tags: {only: /.*/}
name: build-amzn2023-x86_64
- deploy:
arch: x86_64
context: org-global
dist: amzn2023
filters:
Expand All @@ -164,6 +175,7 @@ workflows:
name: build-el7-aarch64
resource_class: arm.medium
- deploy:
arch: aarch64
context: org-global
dist: el7
filters:
Expand All @@ -180,6 +192,7 @@ workflows:
tags: {only: /.*/}
name: build-el7-x86_64
- deploy:
arch: x86_64
context: org-global
dist: el7
filters:
Expand All @@ -197,6 +210,7 @@ workflows:
name: build-el8-aarch64
resource_class: arm.medium
- deploy:
arch: aarch64
context: org-global
dist: el8
filters:
Expand All @@ -213,6 +227,7 @@ workflows:
tags: {only: /.*/}
name: build-el8-x86_64
- deploy:
arch: x86_64
context: org-global
dist: el8
filters:
Expand All @@ -230,6 +245,7 @@ workflows:
name: build-el9-aarch64
resource_class: arm.medium
- deploy:
arch: aarch64
context: org-global
dist: el9
filters:
Expand All @@ -246,6 +262,7 @@ workflows:
tags: {only: /.*/}
name: build-el9-x86_64
- deploy:
arch: x86_64
context: org-global
dist: el9
filters:
Expand All @@ -263,6 +280,7 @@ workflows:
name: build-fc39-aarch64
resource_class: arm.medium
- deploy:
arch: aarch64
context: org-global
dist: fc39
filters:
Expand All @@ -279,6 +297,7 @@ workflows:
tags: {only: /.*/}
name: build-fc39-x86_64
- deploy:
arch: x86_64
context: org-global
dist: fc39
filters:
Expand All @@ -296,6 +315,7 @@ workflows:
name: build-fc40-aarch64
resource_class: arm.medium
- deploy:
arch: aarch64
context: org-global
dist: fc40
filters:
Expand All @@ -312,6 +332,7 @@ workflows:
tags: {only: /.*/}
name: build-fc40-x86_64
- deploy:
arch: x86_64
context: org-global
dist: fc40
filters:
Expand All @@ -329,6 +350,7 @@ workflows:
name: build-sles15-aarch64
resource_class: arm.medium
- deploy:
arch: aarch64
context: org-global
dist: sles15
filters:
Expand All @@ -345,6 +367,7 @@ workflows:
tags: {only: /.*/}
name: build-sles15-x86_64
- deploy:
arch: x86_64
context: org-global
dist: sles15
filters:
Expand Down

0 comments on commit 0eafece

Please sign in to comment.