Skip to content

Commit

Permalink
Auto Install & Push Podman Image
Browse files Browse the repository at this point in the history
  • Loading branch information
AkarinLiu committed Mar 25, 2024
1 parent 0d64faf commit cd11f4c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ jobs:
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
uses: podman/[email protected]
with:
context: .
file: ./Dockerfile
tags: |
ghcr.io/akarinliu/flarum:latest
push: true
push_secret: ${{ secrets.GITHUB_TOKEN }}
run: podman build -t ghcr.io/akarinliu/flarum:latest .
- 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

0 comments on commit cd11f4c

Please sign in to comment.