Skip to content

Add thrift v0.20.0

Add thrift v0.20.0 #84

name: Publish Docker image
on:
# update all docker images whenever we change this repo
push:
branches: [main]
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
thrift-version:
- "0.13.0"
- "0.14.0"
- "0.14.1"
- "0.14.2"
- "0.15.0"
- "0.16.0"
- "0.17.0"
- "0.18.0"
- "0.18.1"
- "0.19.0"
- "0.20.0"
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
build-args: |
THRIFT_VERSION=${{ matrix.thrift-version }}
tags: |
ghcr.io/reddit/thrift-compiler:${{ matrix.thrift-version }}