Renames CI jobs

Be more consistent with respect to what they do
pull/186/head
Tpt 3 years ago
parent cf64633a11
commit aad84e4305
  1. 24
      .github/workflows/artifacts.yml
  2. 8
      .github/workflows/release.yml
  3. 2
      .github/workflows/tests.yml

@ -1,4 +1,4 @@
name: doc and docker name: Nightly artifacts
on: on:
push: push:
@ -38,39 +38,31 @@ jobs:
git push git push
working-directory: ./website working-directory: ./website
docker_nightly: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: 'recursive' submodules: 'recursive'
- uses: docker/setup-buildx-action@v1
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{github.actor}} username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}} password: ${{secrets.GITHUB_TOKEN}}
- uses: docker/metadata-action@v3 - uses: docker/metadata-action@v3
id: docker_meta id: docker_meta
with: with:
images: ghcr.io/${{ github.repository_owner }}/oxigraph images: ghcr.io/${{ github.repository }}
tags: nightly tags: nightly
- uses: docker/build-push-action@v2
- name: Build and publish Docker image
uses: docker/build-push-action@v2
with: with:
context: ./ context: .
file: ./server/Dockerfile file: server/Dockerfile
builder: ${{ steps.buildx.outputs.name }} pull: true
push: true push: true
tags: ${{ steps.docker_meta.outputs.tags }} tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }} labels: ${{ steps.docker_meta.outputs.labels }}
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
# Docs about caching: https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md#github-cache

@ -1,4 +1,4 @@
name: release name: Release artifacts
on: on:
release: release:
@ -11,13 +11,13 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: true submodules: true
- uses: docker/setup-buildx-action@v1
- uses: docker/metadata-action@v3 - uses: docker/metadata-action@v3
id: docker_meta id: docker_meta
with: with:
images: | images: |
oxigraph/oxigraph ${{ github.repository }}
ghcr.io/${{ github.repository }} ghcr.io/${{ github.repository }}
- uses: docker/setup-buildx-action@v1
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
@ -37,6 +37,8 @@ jobs:
push: true push: true
tags: ${{ steps.docker_meta.outputs.tags }} tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }} labels: ${{ steps.docker_meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
publish_rocksdb_crate: publish_rocksdb_crate:
runs-on: ubuntu-latest runs-on: ubuntu-latest

@ -1,4 +1,4 @@
name: build name: Change tests
on: on:
push: push:
Loading…
Cancel
Save