diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..561a741 --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -0,0 +1,35 @@ +name: deploy + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: host + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + registry: git.hydrar.de + username: ${{ secrets.registry_user }} + password: ${{ secrets.registry_password }} + + - name: Build and push Docker image + uses: docker/build-push-action@v4 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: git.hydrar.de/jmarya/umbrella:latest diff --git a/Dockerfile b/Dockerfile index d159435..e6e4d39 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,6 @@ FROM debian:buster RUN apt update && apt upgrade -y -COPY ./src/extract_metadata.py /extract_metadata.py COPY --from=builder /app/target/release/umbrella /umbrella WORKDIR /