correct installed packages #12
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: Create and publish a Docker image to hub.docker.com | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
if: github.repository == 'scilifelabdatacentre/shiny-adhd-medication-sweden' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set date and time as tag | |
id: set_tag | |
run: echo "TAG=$(TZ="Europe/Stockholm" date +'%Y%m%d-%H%M%S')" >> $GITHUB_ENV | |
- name: Build Docker image | |
run: docker build -t scilifelabdatacentre/shiny-adhd-medication-sweden:$TAG -f Dockerfile . | |
- name: Login to Docker Hub | |
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Publish to Docker Hub | |
run: docker push scilifelabdatacentre/shiny-adhd-medication-sweden:$TAG |