From d364b3c3adedf36e16671d2be40880a3ee49b386 Mon Sep 17 00:00:00 2001 From: Mike Smith <89040888+smiggiddy@users.noreply.github.com> Date: Tue, 22 Oct 2024 20:43:26 -0400 Subject: [PATCH 1/3] testing --- .gitea/workflows/pipeline-test.yml | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .gitea/workflows/pipeline-test.yml diff --git a/.gitea/workflows/pipeline-test.yml b/.gitea/workflows/pipeline-test.yml new file mode 100644 index 0000000..fc2ea2b --- /dev/null +++ b/.gitea/workflows/pipeline-test.yml @@ -0,0 +1,41 @@ +name: Build and Deploy Docker Image + +on: + push: + branches: + - ci-build + +jobs: + build: + runs-on: docker + steps: + + - name: Checkout code + uses: actions/checkout@v4 + + + - name: Buildah Action + uses: redhat-actions/buildah-build@v2 + with: + image: my-new-image + tags: test + containerfiles: | + ./Dockerfile + + # - name: Set up Docker Buildx + # uses: docker/setup-buildx-action@v2 + # + # - name: Log in to Gitea Container Registry + # uses: docker/login-action@v3 + # with: + # password: ${{ secrets.PASSWORD }} + # username: ${{ secrets.USERNAME }} + # registry: git.thecodedom.com + # + # - name: Build and push Docker image + # uses: docker/build-push-action@v6 + # with: + # context: . + # push: true + # tags: git.thecodedom.com/dotechbro/dotechbro-website:latest + From 2b2679b363925cd08d0f914c7fbab835bd8533d6 Mon Sep 17 00:00:00 2001 From: Mike Smith <89040888+smiggiddy@users.noreply.github.com> Date: Tue, 22 Oct 2024 20:46:47 -0400 Subject: [PATCH 2/3] testing --- .gitea/workflows/pipeline-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/pipeline-test.yml b/.gitea/workflows/pipeline-test.yml index fc2ea2b..d729198 100644 --- a/.gitea/workflows/pipeline-test.yml +++ b/.gitea/workflows/pipeline-test.yml @@ -15,7 +15,7 @@ jobs: - name: Buildah Action - uses: redhat-actions/buildah-build@v2 + uses: https://github.com/redhat-actions/buildah-build@v2 with: image: my-new-image tags: test From 64d33253ccd23c6e5b9d30c0da73d075d50c1803 Mon Sep 17 00:00:00 2001 From: Mike Smith <89040888+smiggiddy@users.noreply.github.com> Date: Tue, 22 Oct 2024 20:53:10 -0400 Subject: [PATCH 3/3] test login --- .gitea/workflows/pipeline-test.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/pipeline-test.yml b/.gitea/workflows/pipeline-test.yml index d729198..059a8f0 100644 --- a/.gitea/workflows/pipeline-test.yml +++ b/.gitea/workflows/pipeline-test.yml @@ -13,6 +13,13 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Log in to Red Hat Registry + uses: https://github.com/redhat-actions/podman-login@v1 + with: + password: ${{ secrets.PASSWORD }} + username: ${{ secrets.USERNAME }} + registry: git.thecodedom.com + - name: Buildah Action uses: https://github.com/redhat-actions/buildah-build@v2 @@ -28,9 +35,6 @@ jobs: # - name: Log in to Gitea Container Registry # uses: docker/login-action@v3 # with: - # password: ${{ secrets.PASSWORD }} - # username: ${{ secrets.USERNAME }} - # registry: git.thecodedom.com # # - name: Build and push Docker image # uses: docker/build-push-action@v6