From afe25be2b0e541fa17542a20cbe72f9b9a4fc5ea Mon Sep 17 00:00:00 2001 From: Thomas HERVE Date: Tue, 26 Mar 2024 12:08:51 +0100 Subject: [PATCH] Add docker build on push --- .github/workflows/core.yml | 4 +++- core/.gitignore | 1 + core/__pycache__/main.cpython-310.pyc | Bin 424 -> 0 bytes 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 core/.gitignore delete mode 100644 core/__pycache__/main.cpython-310.pyc diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index 95f7079..16f69dd 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -20,5 +20,7 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Connect to dockerhub + run: docker login -u ${{secrets.DOCKER_LOGIN}} -p ${{secrets.DOCKER_PASSWORD}} - name: Build the Docker image - run: docker build . --file core/Dockerfile -t asymetric-unity-core \ No newline at end of file + run: docker build . --file core/Dockerfile -t ${{secrets.DOCKER_LOGIN}}/asymetric-unity-core --output type=registry \ No newline at end of file diff --git a/core/.gitignore b/core/.gitignore new file mode 100644 index 0000000..6246a91 --- /dev/null +++ b/core/.gitignore @@ -0,0 +1 @@ +./__pycache__ \ No newline at end of file diff --git a/core/__pycache__/main.cpython-310.pyc b/core/__pycache__/main.cpython-310.pyc deleted file mode 100644 index 8dba637f3808310b063025771a0785bed8710b96..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 424 zcmYjNy-ve05cb(gnj&@S$Yhv^gxVb;M8(8XA+dFd(%3Dj5~s2qp|N_=LP2jy(p?Wne43de=O?C6^HTCzqjFo+D&eD>Yksc_Yo+3i zukyQQzQ-YCybgy}8oLJsE>cZ3l{%-s^ea9NP_Ix;AB}(o5wsu{cH{*f0f)2k`q)^F z#Akfd2HR8KlJQOJw@0rep)Q)$y2`AJ$~wvf2?g3W6s6rRV|uQUiiz6PX#1~ Hm>t45)_P-+