mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
testing dockerhub
This commit is contained in:
parent
7020bcf20d
commit
0877afc86b
26
.github/workflows/dockerpub.yml
vendored
Normal file
26
.github/workflows/dockerpub.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
name: dockerpub
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: nosqlbench-**
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Login to DockerHub Registry
|
||||
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
|
||||
- name: Get the version
|
||||
id: vars
|
||||
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:10})
|
||||
- name: Build the tagged Docker image
|
||||
run: docker build ./nb/ --file Dockerfile --tag nosqlbench/nosqlbench:${{steps.vars.outputs.tag}}
|
||||
- name: Push the tagged Docker image
|
||||
run: docker push nosqlbench/nosqlbench:${{steps.vars.outputs.tag}}
|
||||
- name: Build the latest Docker image
|
||||
run: docker build ./nb/ --file Dockerfile --tag nosqlbench/nosqlbench:latest
|
||||
- name: Push the latest Docker image
|
||||
run: docker push nosqlbench/nosqlbench:latest
|
||||
|
Loading…
Reference in New Issue
Block a user