diff --git a/.github/workflows/build-devel-test b/.github/workflows/build-devel-test new file mode 100644 index 00000000..a9a4d4ba --- /dev/null +++ b/.github/workflows/build-devel-test @@ -0,0 +1,61 @@ +name: Build Develop + +on: + push: + branches: + - develop + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Get current time + uses: 1466587594/get-current-time@v2 + id: current-time + with: + format: YYYY-MM-DD--HH + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Cache Docker layers + uses: actions/cache@v2 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.CR_PAT }} + + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + + - name: Build and push + uses: docker/build-push-action@v2 + with: + platforms: linux/amd64,linux/arm64,linux/arm + push: true + build-args: | + VUE_APP_VERSION=devel-${{ steps.current-time.outputs.formattedTime }} + tags: | + selfhostedpro/yacht:devel + selfhostedpro/yacht:devel-${{ steps.current-time.outputs.formattedTime }} + ghcr.io/selfhostedpro/yacht:devel + ghcr.io/selfhostedpro/yacht:devel-${{ steps.current-time.outputs.formattedTime }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b81..00000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/.idea.Yacht.dir/.idea/encodings.xml b/.idea/.idea.Yacht.dir/.idea/encodings.xml deleted file mode 100644 index df87cf95..00000000 --- a/.idea/.idea.Yacht.dir/.idea/encodings.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/.idea.Yacht.dir/.idea/indexLayout.xml b/.idea/.idea.Yacht.dir/.idea/indexLayout.xml deleted file mode 100644 index 7b08163c..00000000 --- a/.idea/.idea.Yacht.dir/.idea/indexLayout.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/.idea.Yacht.dir/.idea/projectSettingsUpdater.xml b/.idea/.idea.Yacht.dir/.idea/projectSettingsUpdater.xml deleted file mode 100644 index 4bb9f4d2..00000000 --- a/.idea/.idea.Yacht.dir/.idea/projectSettingsUpdater.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/.idea.Yacht.dir/.idea/vcs.xml b/.idea/.idea.Yacht.dir/.idea/vcs.xml deleted file mode 100644 index 94a25f7f..00000000 --- a/.idea/.idea.Yacht.dir/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/.idea.Yacht.dir/.idea/workspace.xml b/.idea/.idea.Yacht.dir/.idea/workspace.xml deleted file mode 100644 index fa30d990..00000000 --- a/.idea/.idea.Yacht.dir/.idea/workspace.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1646676964071 - - - 1646677756074 - - - - - - - - - - \ No newline at end of file