mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
cleanup docker CI
This commit is contained in:
parent
1309766b66
commit
2e12eb193b
23
.github/workflows/docker.yml
vendored
23
.github/workflows/docker.yml
vendored
@ -1,23 +0,0 @@
|
||||
name: Docker Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'nosqlbench-*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Build nosqlbench docker
|
||||
run: cd nb && docker build -t nosqlbench -f ./Dockerfile-build ./
|
||||
- name: Publish to Registry
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: nosqlbench/nosqlbench
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
tag_names: true
|
||||
dockerfile: Dockerfile
|
||||
workdir: nb
|
27
.github/workflows/dockerhub.yml
vendored
27
.github/workflows/dockerhub.yml
vendored
@ -1,23 +1,15 @@
|
||||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: dockerhub
|
||||
|
||||
on:
|
||||
push:
|
||||
# Sequence of patterns matched against refs/tags
|
||||
tags:
|
||||
- 'nosqlbench-*' # Push events to matching nosqlbench-[version]
|
||||
- nosqlbench-**
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "build"
|
||||
build:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v2
|
||||
- name: Login to DockerHub Registry
|
||||
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
|
||||
@ -32,3 +24,20 @@ jobs:
|
||||
run: docker build ./nb/ --file Dockerfile --tag nosqlbench/nosqlbench:latest
|
||||
- name: Push the latest Docker image
|
||||
run: docker push nosqlbench/nosqlbench:latest
|
||||
|
||||
#jobs: (copied from docker.yml, this snippet references non-extant Dockerfile-build
|
||||
# build:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@master
|
||||
# - name: Build nosqlbench docker
|
||||
# run: cd nb && docker build -t nosqlbench -f ./Dockerfile-build ./
|
||||
# - name: Publish to Registry
|
||||
# uses: elgohr/Publish-Docker-Github-Action@master
|
||||
# with:
|
||||
# name: nosqlbench/nosqlbench
|
||||
# username: ${{ secrets.DOCKER_USERNAME }}
|
||||
# password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
# tag_names: true
|
||||
# dockerfile: Dockerfile
|
||||
# workdir: nb
|
||||
|
Loading…
Reference in New Issue
Block a user