new deploy
Build KX3DEX.radio / Build and Deploy (push) Has been cancelled
Details
Build KX3DEX.radio / Build and Deploy (push) Has been cancelled
Details
parent
def5f208f8
commit
8fc8b3722e
|
@ -18,7 +18,7 @@ jobs:
|
||||||
CURR_VER="$(cat package.json | jq -r .name)_v$(cat package.json | jq -r .version)"
|
CURR_VER="$(cat package.json | jq -r .name)_v$(cat package.json | jq -r .version)"
|
||||||
CURR_NAME="$(cat package.json | jq -r .name) v$(cat package.json | jq -r .version)"
|
CURR_NAME="$(cat package.json | jq -r .name) v$(cat package.json | jq -r .version)"
|
||||||
|
|
||||||
echo "Checking http://gitea.dex/api/v1/repos/${{ gitea.repository }}/releases for name ${CURR_NAME}"
|
echo "Checking http://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases for name ${CURR_NAME}"
|
||||||
|
|
||||||
if curl -s -X GET -H "Authorization: token ${{ secrets.action_token }}" http://gitea.dex/api/v1/repos/${{ gitea.repository }}/releases | grep -o "\"name\"\:\"${CURR_NAME}\"" > /dev/null; then
|
if curl -s -X GET -H "Authorization: token ${{ secrets.action_token }}" http://gitea.dex/api/v1/repos/${{ gitea.repository }}/releases | grep -o "\"name\"\:\"${CURR_NAME}\"" > /dev/null; then
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ jobs:
|
||||||
-X POST \
|
-X POST \
|
||||||
-H "Authorization: token ${{ secrets.action_token }}" \
|
-H "Authorization: token ${{ secrets.action_token }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
http://gitea.dex/api/v1/repos/${{ gitea.repository }}/releases \
|
http://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases \
|
||||||
-d "{\"tag_name\":\"${CURR_VER}\",\"name\":\"${CURR_NAME}\",\"body\":\"Automatic release from gitea :\n\n${{ gitea.event.head_commit.message }}\"}")
|
-d "{\"tag_name\":\"${CURR_VER}\",\"name\":\"${CURR_NAME}\",\"body\":\"Automatic release from gitea :\n\n${{ gitea.event.head_commit.message }}\"}")
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,11 +45,24 @@ jobs:
|
||||||
curl \
|
curl \
|
||||||
-X POST \
|
-X POST \
|
||||||
-H "Authorization: token ${{ secrets.action_token }}" \
|
-H "Authorization: token ${{ secrets.action_token }}" \
|
||||||
http://gitea.dex/api/v1/repos/${{ gitea.repository }}/releases/$RELEASE_ID/assets
|
http://gitea.simplysyncedllc.com/api/v1/repos/${{ gitea.repository }}/releases/$RELEASE_ID/assets
|
||||||
|
|
||||||
|
|
||||||
- name: Build Docker container and put in gitea registry.
|
- name: Build Docker container and put in gitea registry.
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.action_token }}" | docker login gitea.dex -u dex --password-stdin
|
echo "${{ secrets.action_token }}" | docker login gitea.dex -u dex --password-stdin
|
||||||
docker build -t gitea.dex/dex/kx3dex_radio:latest .
|
docker build -t gitea.simplysyncedllc.com/dex/kx3dex_radio:latest .
|
||||||
docker push gitea.dex/dex/kx3dex_radio:latest
|
docker push gitea.simplysyncedllc.com/dex/kx3dex_radio:latest
|
||||||
|
|
||||||
|
- name: Build and push tag
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
if: ${{ gitea.ref_name != 'latest' }}
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
platforms: linux/arm64
|
||||||
|
build-args: |
|
||||||
|
VERSION=${{ gitea.ref_name }}
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
datahearth/reactive-resume:${{ gitea.ref_name }
|
||||||
|
gitea.antoine-langlois.net/reactive-resume:${{ gitea.ref_name }}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "kx3dex_radio",
|
"name": "kx3dex_radio",
|
||||||
"version": "0.1.0",
|
"version": "1.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
|
Loading…
Reference in New Issue