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