Skip to content

Update Dockerfile

Update Dockerfile #81

Workflow file for this run

# Followed this tutorial: https://medium.com/platformer-blog/lets-publish-a-docker-image-to-docker-hub-using-a-github-action-f0b17e5cceb3
# Code shown in tutorial: https://github.com/Shehanka/ITP-GitHub-intro/blob/master/.github/workflows/docker-image.yml
name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: docker login
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build . --file Dockerfile --tag josephsellers/nextcloud-ffmpeg:latest
- name: Docker Push
run: docker push josephsellers/nextcloud-ffmpeg