diff --git a/.gitea/workflows/merge-master-tag-deploy.yaml b/.gitea/workflows/merge-master-tag-deploy.yaml index 4f610e3..af40c3e 100644 --- a/.gitea/workflows/merge-master-tag-deploy.yaml +++ b/.gitea/workflows/merge-master-tag-deploy.yaml @@ -18,7 +18,7 @@ jobs: 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)" - 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 @@ -35,7 +35,7 @@ jobs: -X POST \ -H "Authorization: token ${{ secrets.action_token }}" \ -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 }}\"}") @@ -45,11 +45,24 @@ jobs: curl \ -X POST \ -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. run: | echo "${{ secrets.action_token }}" | docker login gitea.dex -u dex --password-stdin - docker build -t gitea.dex/dex/kx3dex_radio:latest . - docker push gitea.dex/dex/kx3dex_radio:latest + docker build -t gitea.simplysyncedllc.com/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 }} diff --git a/package.json b/package.json index bf5169d..d3f84ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kx3dex_radio", - "version": "0.1.0", + "version": "1.0.0", "private": true, "scripts": { "dev": "next dev",