From edf0fc7e9ff8a6c7636515b2959366aab492c208 Mon Sep 17 00:00:00 2001 From: brooke Date: Sat, 3 Aug 2024 00:26:51 -0400 Subject: [PATCH] add submodule and workflow --- .forgejo/workflows/build.yaml | 37 +++++++++++++++++++++++++++++++++++ .gitmodules | 3 +++ vallhalla-app | 1 + 3 files changed, 41 insertions(+) create mode 100644 .forgejo/workflows/build.yaml create mode 100644 .gitmodules create mode 160000 vallhalla-app diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..cc5bfa0 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,37 @@ +name: Build And Publish Docker + +on: + push: + branches: + - "master" +jobs: + build: + runs-on: debian-bookworm + steps: + - uses: actions/checkout@v4 + with: + submodules: 'true' + - name: Install deps + run: curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@master + + - name: Login to Self-Hosted Registry + uses: docker/login-action@v2 + with: + registry: codeberg.org + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + + - name: Build and Push Extended Version + uses: docker/build-push-action@v4 + with: + builder: ${{ steps.buildx.outputs.name }} + context: ./valhalla-app + file: ./valhalla-app/Dockerfile + platforms: linux/amd64 + push: true + tags: | + "git.myco.systems/brooke/valhalla-app-container:latest" diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a591d32 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "vallhalla-app"] + path = vallhalla-app + url = https://github.com/gis-ops/valhalla-app.git diff --git a/vallhalla-app b/vallhalla-app new file mode 160000 index 0000000..b626648 --- /dev/null +++ b/vallhalla-app @@ -0,0 +1 @@ +Subproject commit b6266482c547aa678a4ec8a2452ff861bd2c76f2