Port from SQLite to Mongodb for cache layer #132
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build-and-push-image: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Setup Docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Log into registry ghcr.io | |
if: github.event_name != 'pull_request' | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push oms-go-worker Docker image | |
uses: docker/[email protected] | |
with: | |
platforms: linux/amd64,linux/arm64 | |
target: oms-worker | |
tags: ghcr.io/temporalio/reference-app-orders-go-worker:latest | |
push: ${{ github.event_name != 'pull_request' }} | |
- name: Build and push oms-go-api Docker image | |
uses: docker/[email protected] | |
with: | |
platforms: linux/amd64,linux/arm64 | |
target: oms-api | |
tags: ghcr.io/temporalio/reference-app-orders-go-api:latest | |
push: ${{ github.event_name != 'pull_request' }} | |
- name: Build and push oms-go-codec-server Docker image | |
uses: docker/[email protected] | |
with: | |
platforms: linux/amd64,linux/arm64 | |
target: oms-codec-server | |
tags: ghcr.io/temporalio/reference-app-orders-go-codec-server:latest | |
push: ${{ github.event_name != 'pull_request' }} |