From 65d0ae0f28e34cf0662183d8a2bc63bf873b909e Mon Sep 17 00:00:00 2001 From: Carlos Duran Date: Wed, 27 Apr 2022 10:08:48 -0600 Subject: [PATCH 1/2] Fixing service type if condition --- charts/nukkit/templates/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/nukkit/templates/service.yaml b/charts/nukkit/templates/service.yaml index 58dfb2f8303..11368873e8c 100644 --- a/charts/nukkit/templates/service.yaml +++ b/charts/nukkit/templates/service.yaml @@ -11,7 +11,7 @@ spec: targetPort: udp protocol: UDP name: udp -{{- if eq .Values.service.port "NodePort" }} +{{- if eq .Values.service.type "NodePort" }} nodePort: {{ .Values.service.nodePort }} {{- end }} selector: From 9d21e9a3dc674da2e3acb8f59a218d3642540a30 Mon Sep 17 00:00:00 2001 From: Carlos Duran Date: Wed, 27 Apr 2022 11:34:34 -0600 Subject: [PATCH 2/2] Create main.yml Main yaml to publish nukkit arm64 image --- .github/workflows/main.yml | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000000..6f7c50cbefe --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,39 @@ +name: publish nukkit arm64 image + +on: + push: + branches: + - 'master' + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - name: Checkout + uses: actions/checkout@v3 + - + name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - + name: Build and push arm64 image + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile.arm64 + push: true + tags: ${{ secrets.DOCKER_HUB_USERNAME }}/nukkit:latest