Skip to content

Change base image to ghcr.io/pranavanba/rocker-sage to use frozen versions of synapse clients #6

Change base image to ghcr.io/pranavanba/rocker-sage to use frozen versions of synapse clients

Change base image to ghcr.io/pranavanba/rocker-sage to use frozen versions of synapse clients #6

# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
name: Build and publish Docker image
on:
push:
branches:
- 'main'
tags:
- '*'
pull_request:
branches:
- 'main'
env:
REGISTRY: ghcr.io
IMAGE_PATH: ghcr.io/${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2.1.0
if: github.event_name != 'pull_request'
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.1.1
with:
images: ${{ env.IMAGE_PATH }}
- name: Build and push Docker image
uses: docker/build-push-action@v3.2.0
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}