Skip to content

Remove intermediate migration step #35

Remove intermediate migration step

Remove intermediate migration step #35

Workflow file for this run

name: docker-publish
on:
push:
branches:
- master
paths-ignore:
- "client-ts/**"
pull_request:
types: [opened, synchronize]
branches:
- master
paths-ignore:
- "client-ts/**"
jobs:
version:
uses: proxima-one/github-workflows/.github/workflows/version.yml@master
with:
appName: state-manager
dockerRepo: "proxima.one/services"
secrets:
DOCKER_REGISTRY_URL: ${{ secrets.DOCKER_REGISTRY_URL }}
publish:
needs: version
runs-on: ubuntu-latest
defaults:
run:
working-directory: .
steps:
- name: "Checkout"
uses: actions/checkout@v2
- name: "Docker Login"
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ${{ secrets.DOCKER_REGISTRY_URL }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: "Build and push image"
uses: docker/build-push-action@v2
with:
context: .
builder: ${{ steps.buildx.outputs.name }}
push: true
build-args: BUILD_VERSION=${{ needs.version.outputs.version }}
tags: ${{ secrets.DOCKER_REGISTRY_URL }}${{ needs.version.outputs.imageId }}
# Reuse docker cache across Github Actions runs
# https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md#cache-backend-api
cache-from: type=gha
cache-to: type=gha,mode=max