diff --git a/.github/workflows/root.yml b/.github/workflows/root.yml index f0cccb7..71f8b48 100644 --- a/.github/workflows/root.yml +++ b/.github/workflows/root.yml @@ -14,6 +14,12 @@ jobs: run: git config --global http.sslVerify false - uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - name: Set up Java uses: actions/setup-java@v4 @@ -44,11 +50,13 @@ jobs: username: ${{ secrets.DOMAIL }} password: ${{ secrets.DOKEY }} - - name: Build the Docker image - run: docker build -t registry.digitalocean.com/jansel/aglaea:latest -t registry.digitalocean.com/jansel/aglaea:${{ steps.date.outputs.date }} . - - - name: Push the Docker image related to this workflow - run: docker push -a registry.digitalocean.com/jansel/aglaea + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: registry.digitalocean.com/jansel/aglaea:latest,registry.digitalocean.com/jansel/aglaea:${{ steps.date.outputs.date }} - name: Remove the Docker image run: docker rmi registry.digitalocean.com/jansel/aglaea:${{ steps.date.outputs.date }}