Build Image #84
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 Image | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Podman | |
run: sudo apt-get update && sudo apt-get install -y podman | |
- name: Build Image | |
run: podman build -t ghcr.io/akarinliu/flarum:latest . --no-cache | |
- name: Login GitHub Account | |
run: podman login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GH_TOKEN }} | |
- name: Push Image | |
run: podman push ghcr.io/akarinliu/flarum:latest |