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