diff --git a/.github/workflows/release-dockerhub.yml b/.github/workflows/release-dockerhub.yml deleted file mode 100644 index daf77c9..0000000 --- a/.github/workflows/release-dockerhub.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: release-dockerhub - -on: - push: - tags: - - "v*.*.*" - -env: - RELEASE_NAME: my_game - -jobs: - setup: - runs-on: ubuntu-latest - outputs: - version: ${{ steps.version-tag.outputs.VERSION }} - steps: - - name: Get tagged version - id: version-tag - run: echo "::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}" - - release-wasm: - needs: setup - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Install Trunk - uses: jetli/trunk-action@v0.1.0 - with: - version: "latest" - - name: Trunk Build - run: | - trunk build --release - ## Deploy - Docker Server - # Qemu is an emulator for alternative architectures - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - # Buildx allows us to build for several architectures - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - # Login to DockerHub - Setup your secrets! Check out the README. - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - # Push HTTP server Docker image - - name: Push to DockerHub - uses: docker/build-push-action@v3 - with: - context: ./launchers/wasm - platforms: linux/amd64,linux/arm64 - push: true - tags: | - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.RELEASE_NAME }}:${{ needs.setup.outputs.version }} - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.RELEASE_NAME }}:latest