Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cars10 committed Feb 11, 2024
1 parent 3905243 commit 5d41a7b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: build and push

on:
workflow_dispatch:

push:

jobs:
build:
runs-on: ubuntu-latest
permissions: write-all

steps:
- name: check out
uses: actions/checkout@v4

- name: login to docker hub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: build and push
run: make prod
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@ run:
build:
cargo build --release

docker:
docker_build:
docker build . -t autodok

docker_push:
docker push ghcr.io/cars10/autodok:latest

prod: docker_build docker_push

0 comments on commit 5d41a7b

Please sign in to comment.