From 08ba0d4d004e2ca3b8ba714e14c5f99cf20cbbf6 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Mon, 24 Jul 2023 07:03:11 +0200 Subject: [PATCH 1/5] added main build --- .gitea/workflows/main.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/main.yaml diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml new file mode 100644 index 0000000..113dc6c --- /dev/null +++ b/.gitea/workflows/main.yaml @@ -0,0 +1,24 @@ +on: + push: + - main + +jobs: + build: + runs-on: docker + steps: + - uses: actions/checkout@v3 + - name: docker login + run: docker login -u $REGISTRY_USER -p $REGISTRY_PASSWORD gitea.sikorski.cloud + env: + REGISTRY_USER: ${{ secrets.REGISTRY_USER }} + REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} + - name: Pull Docker Image for caching + run: docker pull gitea.sikorski.cloud/rogersik/docker-admin-helper:development || exit 0 + - name: Build docker image + run: | + docker build . \ + --cache-from gitea.sikorski.cloud/rogersik/docker-admin-helper:development \ + --file Dockerfile \ + --tag gitea.sikorski.cloud/rogersik/docker-admin-helper:latest + - name: Push docker image + run: docker push gitea.sikorski.cloud/rogersik/docker-admin-helper --all-tags From 7a1572f2c806434c7f60f6931c71f3c1a8545ff8 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Mon, 24 Jul 2023 07:03:19 +0200 Subject: [PATCH 2/5] deleted unnecesarry code --- .gitea/workflows/dev.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml index 1f43273..a58e471 100644 --- a/.gitea/workflows/dev.yaml +++ b/.gitea/workflows/dev.yaml @@ -6,10 +6,7 @@ on: jobs: build: runs-on: docker - container: - image: docker:24-cli steps: - - run: apk --no-cache add nodejs git - uses: actions/checkout@v3 - name: docker login run: docker login -u $REGISTRY_USER -p $REGISTRY_PASSWORD gitea.sikorski.cloud From 765e3e6b60752204dcc2d4a74a0fa8499e5afbe4 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Mon, 24 Jul 2023 07:03:41 +0200 Subject: [PATCH 3/5] renamed from admin to new devops name --- .gitea/workflows/dev.yaml | 8 ++++---- .gitea/workflows/main.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml index a58e471..365bc91 100644 --- a/.gitea/workflows/dev.yaml +++ b/.gitea/workflows/dev.yaml @@ -14,12 +14,12 @@ jobs: REGISTRY_USER: ${{ secrets.REGISTRY_USER }} REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} - name: Pull Docker Image for caching - run: docker pull gitea.sikorski.cloud/rogersik/docker-admin-helper:development || exit 0 + run: docker pull gitea.sikorski.cloud/rogersik/docker-devops-helper:development || exit 0 - name: Build docker image run: | docker build . \ - --cache-from gitea.sikorski.cloud/rogersik/docker-admin-helper:development \ + --cache-from gitea.sikorski.cloud/rogersik/docker-devops-helper:development \ --file Dockerfile \ - --tag gitea.sikorski.cloud/rogersik/docker-admin-helper:development + --tag gitea.sikorski.cloud/rogersik/docker-devops-helper:development - name: Push docker image - run: docker push gitea.sikorski.cloud/rogersik/docker-admin-helper --all-tags + run: docker push gitea.sikorski.cloud/rogersik/docker-devops-helper --all-tags diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index 113dc6c..4b8be85 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -13,12 +13,12 @@ jobs: REGISTRY_USER: ${{ secrets.REGISTRY_USER }} REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} - name: Pull Docker Image for caching - run: docker pull gitea.sikorski.cloud/rogersik/docker-admin-helper:development || exit 0 + run: docker pull gitea.sikorski.cloud/rogersik/docker-devops-helper:development || exit 0 - name: Build docker image run: | docker build . \ - --cache-from gitea.sikorski.cloud/rogersik/docker-admin-helper:development \ + --cache-from gitea.sikorski.cloud/rogersik/docker-devops-helper:development \ --file Dockerfile \ - --tag gitea.sikorski.cloud/rogersik/docker-admin-helper:latest + --tag gitea.sikorski.cloud/rogersik/docker-devops-helper:latest - name: Push docker image - run: docker push gitea.sikorski.cloud/rogersik/docker-admin-helper --all-tags + run: docker push gitea.sikorski.cloud/rogersik/docker-devops-helper --all-tags From f53128a7ead4d5d3f10eeb4d68616204b9255737 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Mon, 24 Jul 2023 07:04:33 +0200 Subject: [PATCH 4/5] removed docker- reference --- .gitea/workflows/main.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index 4b8be85..5ce465b 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -13,12 +13,12 @@ jobs: REGISTRY_USER: ${{ secrets.REGISTRY_USER }} REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} - name: Pull Docker Image for caching - run: docker pull gitea.sikorski.cloud/rogersik/docker-devops-helper:development || exit 0 + run: docker pull gitea.sikorski.cloud/rogersik/devops-helper:development || exit 0 - name: Build docker image run: | docker build . \ - --cache-from gitea.sikorski.cloud/rogersik/docker-devops-helper:development \ + --cache-from gitea.sikorski.cloud/rogersik/devops-helper:development \ --file Dockerfile \ - --tag gitea.sikorski.cloud/rogersik/docker-devops-helper:latest + --tag gitea.sikorski.cloud/rogersik/devops-helper:latest - name: Push docker image - run: docker push gitea.sikorski.cloud/rogersik/docker-devops-helper --all-tags + run: docker push gitea.sikorski.cloud/rogersik/devops-helper --all-tags From d1dfe2c48e0ca696ee8a08c7404925209b23fd00 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Mon, 24 Jul 2023 07:06:10 +0200 Subject: [PATCH 5/5] removed docker- reference --- .gitea/workflows/dev.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml index 365bc91..c60237f 100644 --- a/.gitea/workflows/dev.yaml +++ b/.gitea/workflows/dev.yaml @@ -14,12 +14,12 @@ jobs: REGISTRY_USER: ${{ secrets.REGISTRY_USER }} REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} - name: Pull Docker Image for caching - run: docker pull gitea.sikorski.cloud/rogersik/docker-devops-helper:development || exit 0 + run: docker pull gitea.sikorski.cloud/rogersik/devops-helper:development || exit 0 - name: Build docker image run: | docker build . \ - --cache-from gitea.sikorski.cloud/rogersik/docker-devops-helper:development \ + --cache-from gitea.sikorski.cloud/rogersik/devops-helper:development \ --file Dockerfile \ - --tag gitea.sikorski.cloud/rogersik/docker-devops-helper:development + --tag gitea.sikorski.cloud/rogersik/devops-helper:development - name: Push docker image - run: docker push gitea.sikorski.cloud/rogersik/docker-devops-helper --all-tags + run: docker push gitea.sikorski.cloud/rogersik/devops-helper --all-tags