Skip to content

add Dockerfile and docker.yml #1

add Dockerfile and docker.yml

add Dockerfile and docker.yml #1

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- docker
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
run: |
docker build -t ghcr.io/${{ github.repository_owner }}/dailycrypt:latest .
docker push ghcr.io/${{ github.repository_owner }}/dailycrypt:latest