diff --git a/.github/workflows/deploy-to-balena.yml b/.github/workflows/deploy-to-balena.yml deleted file mode 100644 index 09c1cb4..0000000 --- a/.github/workflows/deploy-to-balena.yml +++ /dev/null @@ -1,137 +0,0 @@ -name: "Deploy" - -on: - push: - tags: - - "*.*.*" - -env: - BALENA_APP: g_joseph_alan_kogut/balenaVirt - BALENA_CLI_VERSION: 14.5.15 - REGISTRY: ghcr.io - -jobs: - deploy-networking-to-ghcr: - runs-on: ubuntu-20.04 - env: - GHCR_IMAGE_NAME: balena-labs-research/balena-virt-networking - permissions: - contents: read - packages: write - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v2 - - - name: Available platforms - run: echo ${{ steps.buildx.outputs.platforms }} - - - name: Log in to the Container registry - uses: docker/login-action@v2 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v4 - with: - images: ${{ env.REGISTRY }}/${{ env.GHCR_IMAGE_NAME }} - flavor: | - latest=true - tags: | - type=semver,pattern={{version}} - - - name: Build and push Docker image - uses: docker/build-push-action@v3 - with: - context: ./containers - file: ./containers/Dockerfile.networking - platforms: linux/amd64 - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max - - deploy-virt-to-ghcr: - runs-on: ubuntu-20.04 - env: - GHCR_IMAGE_NAME: balena-labs-research/balena-virt - permissions: - contents: read - packages: write - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v2 - - - name: Available platforms - run: echo ${{ steps.buildx.outputs.platforms }} - - - name: Log in to the Container registry - uses: docker/login-action@v2 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v4 - with: - images: ${{ env.REGISTRY }}/${{ env.GHCR_IMAGE_NAME }} - flavor: | - latest=true - tags: | - type=semver,pattern={{version}} - - - name: Build and push Docker image - uses: docker/build-push-action@v3 - with: - context: ./containers - file: ./containers/Dockerfile.virt - platforms: linux/amd64 - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max - - deploy-to-balena: - needs: [deploy-virt-to-ghcr, deploy-networking-to-ghcr] - runs-on: ubuntu-20.04 - steps: - - name: Checkout main branch - uses: actions/checkout@v3 - - - name: Update balena.yml - uses: balena-io-experimental/balena.yml-action@main - with: - # Synchronise the GitHub README with the Balena Hub README - sync_readme: true - # If pushing a tag to deploy, use the same tag as the version number to display on Balena Hub - sync_tag: true - - - name: Push to BCR - uses: balena-labs-research/community-cli-action@1.0.0 - with: - balena_token: ${{secrets.BALENA_API_KEY}} - balena_cli_commands: > - push ${{ env.BALENA_APP }}; - balena_cli_version: ${{ env.BALENA_CLI_VERSION }}