From 5ee5db597ce4a626a475203b16a63aa6cff31d6f Mon Sep 17 00:00:00 2001 From: Dagger Date: Sat, 21 Oct 2023 18:43:27 -0500 Subject: [PATCH] Swap out gitlab-ci for gitrea actions --- .gitea/workflows/container-deploy.yaml | 40 ++++++++++++++++++++++++++ .gitlab-ci.yml | 16 ----------- 2 files changed, 40 insertions(+), 16 deletions(-) create mode 100644 .gitea/workflows/container-deploy.yaml delete mode 100644 .gitlab-ci.yml diff --git a/.gitea/workflows/container-deploy.yaml b/.gitea/workflows/container-deploy.yaml new file mode 100644 index 0000000..eb8a198 --- /dev/null +++ b/.gitea/workflows/container-deploy.yaml @@ -0,0 +1,40 @@ +name: Test and Build Docker Image +run-name: 🐋 +on: [push] +jobs: + Test-Build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - run: python --version + - run: pip --version + - run: pip install -r + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." + - name: List files in the repository + run: | + ls ${{ gitea.workspace }} + + Build-Image: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Log in to the Container registry + uses: docker/login-action@v2 + with: + registry: git.oki.cx + username: ${{ github.repository_owner }} + password: ${{ secrets.GITEA_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v4 + with: + push: true + tags: user/app:latest \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 6c4fe4e..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,16 +0,0 @@ -build-test: - image: python:3.9 - script: - - python --version - - pip --version - - pip install -r requirements.txt - - echo "pytest needs finishing" - -build-docker: - image: docker - services: - - docker:dind - script: - - echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin - - docker build -t $CI_REGISTRY_IMAGE . - - docker push $CI_REGISTRY_IMAGE \ No newline at end of file