diff --git a/.forgejo/workflows/start.yaml b/.forgejo/workflows/start.yaml index 0ce1ed0..3579dd7 100644 --- a/.forgejo/workflows/start.yaml +++ b/.forgejo/workflows/start.yaml @@ -1,6 +1,6 @@ on: [push] jobs: - test: + desec-script: runs-on: docker container: image: node:latest @@ -9,6 +9,26 @@ jobs: uses: actions/checkout@v6 - run: | - ls -la - echo "test" + cd server-scripts/desec-ip-sync/ + + - name: Login to Forgejo Container Registry + uses: docker/login-action@v4 + with: + registry: git.devdoes.work + username: devaine + password: ${{ secrets.USER_TOKEN }} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v4 + + - name: Build and push + uses: docker/build-push-action@v6 + with: + platforms: linux/amd64,linux/arm64 + push: true + tags: devaine/desec-script:latest + + #- run: | + # ls -la + # echo "test" diff --git a/server-scripts/desec-ip-sync/Dockerfile b/server-scripts/desec-ip-sync/Dockerfile new file mode 100644 index 0000000..8a8601e --- /dev/null +++ b/server-scripts/desec-ip-sync/Dockerfile @@ -0,0 +1,4 @@ +FROM --platform=linux/amd64 node:latest + +RUN ["bash", "run.bash"] + diff --git a/server-scripts/desec-ip-sync/docker-compose.yml b/server-scripts/desec-ip-sync/docker-compose.yml new file mode 100644 index 0000000..fcb49d0 --- /dev/null +++ b/server-scripts/desec-ip-sync/docker-compose.yml @@ -0,0 +1,4 @@ +services: + desec-script: + image: git.devdoes.work/devaine/desec-script:latest + container_name: desec-script