diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml new file mode 100644 index 0000000..8c17264 --- /dev/null +++ b/.gitea/workflows/docker-build.yml @@ -0,0 +1,39 @@ +name: Docker Build + +on: + push: + branches: + - main + paths: + - 'Dockerfile' + - 'entrypoint.sh' + +jobs: + build: + name: Build Docker image + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{secrets.DOCKER_USERNAME}} + password: ${{secrets.DOCKER_PASSWORD}} + + - name: Build Docker image + run: | + docker buildx build \ + --file Dockerfile \ + --tag uzurka/graalvm:minideb \ + --build-arg GRAALVERSION=20.0.2-graal \ + --platform linux/amd64,linux/arm64 \ + . \ No newline at end of file