Skip to content

Create docker.yml #1

Create docker.yml

Create docker.yml #1

Workflow file for this run

name: Docker CI
on:
push:
branches: [ "main" ]
jobs:
build:
name: Docker build
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/#-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build docker image
run: |
docker build --platform linux --tag aminespinoza/websiteplatzi:latest -f CI/Dockerfile .
- name: Publish docker image
run: |
docker push aminespinoza/websiteplatzi:latest