Skip to content

Commit

Permalink
Enable docker image building temporarily for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Jan 3, 2024
1 parent 43619f5 commit bc14ec0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/docker.yml
Expand Up @@ -7,6 +7,7 @@ on:
tags: ["v*"]
branches: [ master, main, develop ]
workflow_dispatch:
pull_request:

permissions:
contents: read
Expand Down Expand Up @@ -40,7 +41,7 @@ jobs:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
shell: bash
run: |
echo "SYNAPSE_VERSION=$(grep "^version" pyproject.toml | sed -E 's/version\s*=\s*["]([^"]*)["]/\1/')" >> $GITHUB_ENV
echo "SYNAPSE_VERSION=0.0.0" >> $GITHUB_ENV
- name: Log in to DockerHub
uses: docker/login-action@v3
Expand All @@ -60,14 +61,11 @@ jobs:
uses: docker/metadata-action@master
with:
images: |
docker.io/matrixdotorg/synapse
ghcr.io/element-hq/synapse
flavor: |
latest=false
tags: |
type=raw,value=develop,enable=${{ github.ref == 'refs/heads/develop' }}
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=raw,value=test-cosign
type=pep440,pattern={{raw}}
- name: Build and push all platforms
Expand All @@ -77,7 +75,6 @@ jobs:
push: true
labels: |
gitsha1=${{ github.sha }}
org.opencontainers.image.version=${{ env.SYNAPSE_VERSION }}
tags: "${{ steps.set-tag.outputs.tags }}"
file: "docker/Dockerfile"
platforms: linux/amd64,linux/arm64
Expand Down

0 comments on commit bc14ec0

Please sign in to comment.