From cc361dfefc266dd2d17132c93f60edcf2e1f2738 Mon Sep 17 00:00:00 2001 From: Tudor Amariei Date: Tue, 26 Mar 2024 17:31:07 +0200 Subject: [PATCH 1/2] Create an image build pipeline --- .github/workflows/build-image.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/build-image.yml diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml new file mode 100644 index 00000000..116e3cb4 --- /dev/null +++ b/.github/workflows/build-image.yml @@ -0,0 +1,16 @@ +on: + push: + branches: + - 'main' + tags: + - 'v*' + +name: Build Docker image + +jobs: + + build: + name: Build Docker image + uses: code4romania/.github/.github/workflows/build-push-image.yml@main + with: + images: ghcr.io/code4romania/seismic-risc From d6de5e2472e5bbee6b46193e1d1c8c6c23d40381 Mon Sep 17 00:00:00 2001 From: Tudor Date: Tue, 26 Mar 2024 17:42:52 +0200 Subject: [PATCH 2/2] Update the build-image pipeline (#959) - move to using docker hub directly - add the proper variables to start the build process --- .github/workflows/build-image.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 116e3cb4..380db7be 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -13,4 +13,9 @@ jobs: name: Build Docker image uses: code4romania/.github/.github/workflows/build-push-image.yml@main with: - images: ghcr.io/code4romania/seismic-risc + images: code4romania/seismic-risc + context: ./ + dockerfile: ./docker/dockerfiles/Dockerfile.backend + secrets: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + token: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}