diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 3a880fabf278c3..b69a5e5ce958f8 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -1,13 +1,7 @@ name: Build container image on: - workflow_dispatch: - push: - branches: - - 'main' - pull_request: - paths: - - .github/workflows/build-image.yml - - Dockerfile + release: + types: [published, edited] permissions: contents: read packages: write @@ -30,8 +24,8 @@ jobs: with: images: ghcr.io/${{ github.repository_owner }}/mastodon tags: | - type=raw,value=latest,enable={{is_default_branch}} - type=edge,branch=main + type=raw,value=latest + type=edge,branch=meemu type=sha,prefix=,format=long - uses: docker/build-push-action@v3 with: diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml deleted file mode 100644 index c4db830295ffdd..00000000000000 --- a/.github/workflows/docker-image.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Docker Image CI - -on: - push: - branches: [ glitch-branch ] - pull_request: - branches: [ glitch-branch ] - -jobs: - - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)