Skip to content

Update Dockerfile

Update Dockerfile #8

name: Build and Publish R Docker image with DNAcopy
on:
push:
branches:
- main # You can change this to the branch you want to trigger the workflow
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.USER_NAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./rdocker
push: true
tags: ${{ secrets.USER_NAME }}/my-r-dnacopy-image:latest