Skip to content

Failing service demo #8

Failing service demo

Failing service demo #8

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-flaky-service-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-flaky-service
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/pluralsh/flaky-service-sidecar
tags: v1.0.0
- id: meta-flaky-service-sidecar
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/pluralsh/flaky-service-sidecar
tags: v1.0.0
- 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-flaky-service.outputs.tags }}
labels: ${{ steps.meta-flaky-service.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-flaky-service-sidecar.outputs.tags }}
labels: ${{ steps.meta-flaky-service-sidecar.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 }}