From 11ab931a6fa402e0c7593fd1a8fd6dd867943d22 Mon Sep 17 00:00:00 2001 From: Abubakarr Kamara <72503671+Abubakarr99@users.noreply.github.com> Date: Tue, 1 Aug 2023 12:27:51 +0000 Subject: [PATCH 1/3] PTFE-700: build workflow --- .github/workflows/build.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 00000000..10f86516 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,17 @@ +name: Docker build + +on: + push: + branches: + - main + pull_request: + +jobs: + docker-build: + permissions: + contents: read + packages: write + uses: scality/workflows/.github/workflows/docker-build.yaml@v1 + with: + name: runner-manager + namespace: scality From b872eb010ffba130eb3535230dfdbf5e02b86e9a Mon Sep 17 00:00:00 2001 From: Abubakarr Kamara <72503671+Abubakarr99@users.noreply.github.com> Date: Wed, 2 Aug 2023 10:23:02 +0200 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: Thomas Carmet --- .github/workflows/build.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 10f86516..89e9b099 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -5,7 +5,10 @@ on: branches: - main pull_request: - + branches: + - main +permissions: + contents: read jobs: docker-build: permissions: @@ -15,3 +18,4 @@ jobs: with: name: runner-manager namespace: scality + tag: ${{ github.ref_name == 'main' && 'latest' || github.sha }} From 557399db397e76e25a1df8d91e014013997f4314 Mon Sep 17 00:00:00 2001 From: Abubakarr Kamara <72503671+Abubakarr99@users.noreply.github.com> Date: Thu, 3 Aug 2023 11:09:30 +0200 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: Thomas Carmet --- .github/workflows/build.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 89e9b099..6c0390cb 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -7,8 +7,10 @@ on: pull_request: branches: - main + permissions: contents: read + jobs: docker-build: permissions: