Skip to content

Update README.md

Update README.md #344

Workflow file for this run

name: Create Docker Image
on:
push:
branches:
- master
- dev
jobs:
build-image:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- remaster: counterless
lock: rma
- remaster: counterless
lock: ddr
steps:
- uses: actions/checkout@v2
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Compute tag
env:
LOCK: ${{ matrix.lock }}
id: compute_tag
run: |
echo "::set-output name=sha::${LOCK}-${GITHUB_SHA:0:7}"
echo "::set-output name=branch::${LOCK}-${GITHUB_REF##refs/heads/}"
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: ctring/slog:${{ steps.compute_tag.outputs.sha }},ctring/slog:${{ steps.compute_tag.outputs.branch }}
builder: ${{ steps.buildx.outputs.name }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
build-args: |
CMAKE_OPTIONS=-DLOCK_MANAGER=${{ matrix.lock }} -DREMASTER_PROTOCOL=${{ matrix.remaster }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}