Merge pull request #967 from GaloisInc/lisanna/remote-api-docker

Build and push .github/Dockerfile-remote-api to galoisinc/cryptol-remote-api
This commit is contained in:
LisannaAtGalois 2020-11-16 11:32:02 -08:00 committed by GitHub
commit 85413b3212
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 2 deletions

View File

@ -4,7 +4,7 @@ on:
tags: ["v?[0-9]+.[0-9]+.[0-9]+"]
jobs:
docker:
cryptol:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@ -21,3 +21,19 @@ jobs:
tags: "latest,${{ steps.outputs.outputs.cryptol-version }}"
add_git_labels: true
push: true
cryptol-remote-api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: .github/ci.sh set_version
id: outputs
- name: Publish to Registry
uses: docker/build-push-action@v1
with:
repository: galoisinc/cryptol-remote-api
tags: "latest,${{ steps.outputs.outputs.cryptol-version }}"
add_git_labels: true
push: true
dockerfile: .github/Dockerfile-remote-api

View File

@ -38,7 +38,7 @@ jobs:
path: docs
name: docs
docker:
docker-cryptol:
runs-on: ubuntu-latest
needs: [outputs]
steps:
@ -55,6 +55,24 @@ jobs:
add_git_labels: true
push: ${{ github.event_name == 'schedule' }}
docker-cryptol-remote-api:
runs-on: ubuntu-latest
needs: [outputs]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Publish to Registry
uses: docker/build-push-action@v1
with:
username: ${{ secrets.GITHUBCRYPTOL_USERNAME }}
password: ${{ secrets.GITHUBCRYPTOL }}
repository: galoisinc/cryptol-remote-api
tags: "nightly"
add_git_labels: true
push: ${{ github.event_name == 'schedule' }}
dockerfile: .github/Dockerfile-remote-api
build:
needs: [outputs, docs]
runs-on: ${{ matrix.os }}