Skip to content

fix docker

fix docker #3

Workflow file for this run

name: Publish Docker images to GHCR
on:
push:
branches:
- master
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
run: |
docker build . --tag ghcr.io/foxandxss/fullstack:latest
docker run ghcr.io/foxandxss/fullstack:latest
docker push ghcr.io/foxandxss/fullstack:latest