cleanup docker CI

This commit is contained in:
Jonathan Shook 2020-05-21 11:44:29 -05:00
parent 1309766b66
commit 2e12eb193b
2 changed files with 18 additions and 32 deletions

View File

@ -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

View File

@ -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