name: Debug Release on: workflow_dispatch: inputs: tag: description: "Tag of image to build" required: true jobs: build-release: name: Build and release Docker image runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - name: Login into DockerHub run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin - name: Login into GitHub Container Registry run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Build and Push uses: docker/build-push-action@v6 with: context: . platforms: linux/amd64,linux/arm64,linux/arm/v7 platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7 push: true tags: | ghcr.io/${{ github.repository }}:${{ github.event.inputs.tag }} ${{ github.repository }}:${{ github.event.inputs.tag }}