diff --git a/.gitea/workflows/gitea.yaml b/.gitea/workflows/gitea.yaml index 0bd7e28..01b2bfd 100644 --- a/.gitea/workflows/gitea.yaml +++ b/.gitea/workflows/gitea.yaml @@ -36,6 +36,7 @@ jobs: uses: actions/download-artifact@v3 with: name: build + path: ./build - name: Test run: pwd && ls -la - name: Set up QEMU @@ -52,10 +53,19 @@ jobs: registry: https://git.tomcode.io username: ${{ vars.DOCKER_USER }} password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Get Meta - id: meta run: | echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT - echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT \ No newline at end of file + echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT + - name: Build and push + uses: docker/build-push-action@v4 + with: + context: ./docker + file: ./Dockerfile + platforms: | + linux/amd64 + linux/arm64 + push: true + tags: | # replace it with your local IP and tags + git.tomcode.io/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} + git.tomcode.io/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }} \ No newline at end of file