Skip to content

Create setup.sh

Create setup.sh #3

Workflow file for this run

name: docker-build
on:
push:
# Optional: specify paths for files that should trigger the action if changed
#paths:
#- "R/**.R"
#- .github/workflows/docker-image.yml
#- Dockerfile
branches: [ "main" ]
# 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@v2
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/AnushaPB/codespacer:latest
- name: Publish
run: docker push ghcr.io/AnushaPB/codespacer:latest