New build YAML
Build KX3DEX.radio / Build and Deploy (push) Failing after 22s Details

master
Dex 2024-03-29 11:41:06 -04:00
parent ec8649d0c6
commit 4f39a6169c
2 changed files with 7 additions and 14 deletions

View File

@ -53,20 +53,14 @@ jobs:
https://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases/$RELEASE_ID/assets https://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases/$RELEASE_ID/assets
- name: Build Docker container and put in gitea registry. - name: Build amd64/arm64 Docker containers and put in gitea registry.
run: | run: |
echo "${{ secrets.action_token }}" | docker login gitea.simplysyncedllc.com -u dex --password-stdin echo "${{ secrets.action_token }}" | docker login gitea.simplysyncedllc.com -u dex --password-stdin
docker build -t gitea.simplysyncedllc.com/dex/kx3dex_radio:latest . docker buildx build --platform linux/amd64,linux/arm64 -t gitea.simplysyncedllc.com/dex/kx3dex_radio:latest .
docker push gitea.simplysyncedllc.com/dex/kx3dex_radio:latest docker push gitea.simplysyncedllc.com/dex/kx3dex_radio:latest
- name: Build Docker for arm64 # - name: Build arm64 Docker container and put in gitea registry.
uses: docker/build-push-action@v4 # run: |
if: ${{ gitea.ref_name != 'latest' }} # echo "${{ secrets.action_token }}" | docker login gitea.simplysyncedllc.com -u dex --password-stdin
with: # docker buildx build --platform -t gitea.simplysyncedllc.com/dex/kx3dex_radio:latest .
context: . # docker push gitea.simplysyncedllc.com/dex/kx3dex_radio:latest
platforms: linux/arm64
build-args: |
VERSION=${{ gitea.ref_name }}
push: true
tags: |
gitea.simplysyncedllc.com/dex/kx3dex_radio:${{ gitea.ref_name }}

View File

@ -40,5 +40,4 @@ EXPOSE 3000
ENV PORT 3000 ENV PORT 3000
ENV HOSTNAME "0.0.0.0" ENV HOSTNAME "0.0.0.0"
CMD ["node", "server.js"] CMD ["node", "server.js"]