mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Bumps [actions/cache](https://github.com/actions/cache) from v2 to v2.1.4. - [Release notes](https://github.com/actions/cache/releases) - [Commits](https://github.com/actions/cache/compare/v2...26968a09c0ea4f3e233fdddbafd1166051a095f6) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: ci
|
|
on:
|
|
release:
|
|
types: [published]
|
|
jobs:
|
|
docker-build-and-push:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
-
|
|
name: "Checkout repository"
|
|
uses: actions/checkout@v2
|
|
-
|
|
name: "Set up Docker Buildx"
|
|
uses: docker/setup-buildx-action@v1
|
|
-
|
|
name: "Cache Docker layers"
|
|
uses: actions/cache@v2.1.4
|
|
with:
|
|
path: /tmp/.buildx-cache
|
|
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
|
restore-keys: |
|
|
${{ runner.os }}-buildx-
|
|
-
|
|
name: "Login to Container Registry"
|
|
uses: docker/login-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
-
|
|
name: "Build and push docker image"
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: ${{ github.repository }}:${{ github.event.release.tag_name }}
|
|
build-args: RELEASE_VERSION=${{ github.event.release.tag_name }}
|
|
cache-from: type=local,src=/tmp/.buildx-cache
|
|
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache
|