Set to root user to make dir #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |