diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..a4d69b9e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,52 @@ +name: ci +on: + workflow_dispatch: + #push: + # paths-ignore: + # - 'README.md' + # branches: + # - '**' + +jobs: + buildx: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Get Version + id: get_version + uses: battila7/get-version-action@v2.3.0 + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v1 + - name: Cache Docker layers + uses: actions/cache@v2.1.7 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + - name: Available platforms + run: echo ${{ steps.buildx.outputs.platforms }} + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUBUNAME }} + password: ${{ secrets.DOCKERHUBTOKEN }} + - name: Build only + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + platforms: linux/arm64,linux/amd64 + push: true + tags: | + hvalev/genie-server:latest + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache diff --git a/Dockerfile b/Dockerfile index 187e6acc..a9975852 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,8 @@ RUN apt-get update && \ wget \ curl \ gnupg \ + #for certs +# libgnutls30 \ pulseaudio \ pulseaudio-utils \ libpulse0 \