diff --git a/.github/workflows/docker_build.yaml b/.github/workflows/docker_build.yaml deleted file mode 100644 index e91dccb..0000000 --- a/.github/workflows/docker_build.yaml +++ /dev/null @@ -1,58 +0,0 @@ -# This is boilerplate for publishing a Docker image via Github Actions. - -name: Docker - -on: - workflow_dispatch: - # push: - # branches: ["main"] - # # Publish semver tags as releases. - # tags: - # - "v[0-9]+.[0-9]+.[0-9]+" - # - "[0-9]+.[0-9]+.[0-9]+" - # - "[0-9]+.[0-9]+.[0-9]+-*" - release: - types: [published] - -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} - -jobs: - build: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - name: Login to GitHub Container Registry - uses: docker/login-action@v4 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Checkout repository - uses: actions/checkout@v7 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v4 - - - name: Extract Docker metadata - id: meta - uses: docker/metadata-action@v6 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - - name: Build and push Docker image - id: build-and-push - uses: docker/build-push-action@v7 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64,linux/arm64/v8 - cache-from: type=gha - cache-to: type=gha,mode=max