Skip to content

Failing service demo #4

Failing service demo

Failing service demo #4

Workflow file for this run

name: CD / Demos
on:
pull_request:
branches:
- "master"
paths:
- ".github/workflows/flaky-service-cd.yaml"
- "go/demo/**"
push:
tags:
- 'go/demo/v*.*.*'
permissions:
contents: read
env:
GOPATH: /home/runner/go
GOBIN: /home/runner/go/bin
GOPROXY: "https://proxy.golang.org"
jobs:
publish-docker:
name: Build and push flaky-service container
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
working-directory: go/demo/flaky-service
permissions:
contents: 'read'
id-token: 'write'
packages: 'write'
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/pluralsh/flaky-service
ghcr.io/pluralsh/flaky-service-sidecar
tags: |
type=sha
type=ref,event=pr
type=ref,event=branch
type=match,pattern=go/flaky-service/(v.*),group=1
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-qemu-action@v3
- uses: docker/[email protected]
- uses: docker/build-push-action@v5
with:
context: "./go/demo/flaky-service"
file: "./go/demo/flaky-service/Dockerfile"
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64, linux/arm64
cache-from: type=gha
cache-to: type=gha, mode=max
build-args: |
GIT_COMMIT=${{ github.sha }}
VERSION=${{ steps.meta.outputs.version }}
- uses: docker/build-push-action@v5
with:
context: "./go/demo/flaky-service"
file: "./go/demo/flaky-service/Dockerfile.sidecar"
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64, linux/arm64
cache-from: type=gha
cache-to: type=gha, mode=max
build-args: |
GIT_COMMIT=${{ github.sha }}
VERSION=${{ steps.meta.outputs.version }}