From c5ce114282b56d28159f415eaa2bbea92d3d1845 Mon Sep 17 00:00:00 2001 From: phil Date: Sun, 3 Nov 2024 02:38:45 +0100 Subject: [PATCH] Cosmetic --- .forgejo/workflows/build-with-app-image.yaml | 84 -------------------- build.yaml | 2 +- 2 files changed, 1 insertion(+), 85 deletions(-) delete mode 100644 .forgejo/workflows/build-with-app-image.yaml diff --git a/.forgejo/workflows/build-with-app-image.yaml b/.forgejo/workflows/build-with-app-image.yaml deleted file mode 100644 index ef4d1e0..0000000 --- a/.forgejo/workflows/build-with-app-image.yaml +++ /dev/null @@ -1,84 +0,0 @@ -on: - workflow_dispatch: - inputs: - verbose: - description: "Verbose" - required: false - default: false - type: boolean - build: - description: "Build container image" - required: false - default: false - type: boolean - push: - description: "Push container image to registry" - required: false - default: false - type: boolean - -jobs: - build: - runs-on: container - container: - image: tiptop:5000/treetrail-backend-ci - volumes: - - "uv_cache:/root/.cache/uv" - - "ca-cert:/etc/containers/certs.d" - services: - treetrail-database: - image: treetrail-database - env: - PYTHONPATH: /app/lib/python3.12/site-packages - UV_PROJECT_ENVIRONMENT: /app - steps: - - uses: actions/checkout@v4 - - - name: Install dependencies (to uv's project environment) - run: uv sync --locked --no-dev --no-editable - - - name: Install dependencies for testing - run: uv pip install httpx - - - name: Echo env - if: ${{ inputs.verbose }} - run: | - echo '${{ toJSON(env) }}' - - - name: Run basic test (bootstrap) - run: pytest -s tests/basic.py - - - name: Install podman and buildah - if: ${{ inputs.build }} - run: | - apt-get install -y --no-install-recommends podman buildah - - - name: Workaround for bug of podman-login - run: | - mkdir -p $HOME/.docker - echo "{ \"auths\": {} }" > $HOME/.docker/config.json - - - name: Log in to container registry (with another workaround) - uses: actions/podman-login@v1 - with: - registry: ${{ vars.REGISTRY }} - username: ${{ secrets.REGISTRY_USER }} - password: ${{ secrets.REGISTRY_PASSWORD }} - auth_file_path: /tmp/auth.json - - - name: Build container image - if: ${{ inputs.build }} - uses: actions/buildah-build@v1 - with: - image: treetrail-backend - #tags: foo # v1 ${{ github.sha }} - containerfiles: | - ./Containerfile.for_runner - - - name: Push container image to registry - uses: actions/push-to-registry@v2 - if: ${{ inputs.push }} - with: - registry: "docker://${{ vars.REGISTRY }}" - image: treetrail-backend - tags: latest diff --git a/build.yaml b/build.yaml index 3a2b615..1f620f2 100644 --- a/build.yaml +++ b/build.yaml @@ -31,7 +31,7 @@ push_args: dest: "{{ repository }}/treetrail-backend-deps" - - name: Build the backend base container image + - name: Build the backend container image containers.podman.podman_image: name: treetrail-backend state: build