✨ Added temporary BlogPage and reformatted some code #11
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: Build and Push Docker Image | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Login to GHCR.io | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.TOKEN }} | |
- name: Build Docker image | |
run: | | |
docker build -t home-zeyx-dev:latest . | |
docker tag home-zeyx-dev:latest ghcr.io/zeyxs/home-zeyx-dev:latest | |
- name: Push Docker image to GHCR.io | |
run: docker push ghcr.io/zeyxs/home-zeyx-dev:latest |