mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 2. - [Release notes](https://github.com/docker/login-action/releases) - [Commits](https://github.com/docker/login-action/compare/v1...v2) --- updated-dependencies: - dependency-name: docker/login-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@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@v3
|
|
-
|
|
name: "Set up Docker Buildx"
|
|
uses: docker/setup-buildx-action@v2
|
|
-
|
|
name: "Cache Docker layers"
|
|
uses: actions/cache@v3.0.5
|
|
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@v2
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
-
|
|
name: "Build and push docker image"
|
|
uses: docker/build-push-action@v3
|
|
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
|