Skip to content

Set to root user to make dir #36

Set to root user to make dir

Set to root user to make dir #36

Workflow file for this run

name: docker-build
on:
push:
# Optional: specify paths for files that should trigger the action if changed
# In this case, the action is triggered when the Dockerfile or install.R are changed
paths:
- Dockerfile
- .github/workflows/docker-image.yml
branches: [ "*" ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/${GITHUB_REPOSITORY,,}:latest
- name: Publish
run: docker push ghcr.io/${GITHUB_REPOSITORY,,}:latest