mirror of
https://github.com/Anduin2017/HowToCook.git
synced 2025-02-06 13:38:24 +08:00
chore: Update build workflow to include Docker image build and push to GitHub Container Registry
This commit is contained in:
parent
1df335b082
commit
3128f9b3db
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -5,7 +5,7 @@ on:
|
|||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Rebuild-everything:
|
build-readme-file:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Checkout, install tools..
|
# Checkout, install tools..
|
||||||
@ -29,6 +29,14 @@ jobs:
|
|||||||
commit_user_email: github-actions[bot]@users.noreply.github.com
|
commit_user_email: github-actions[bot]@users.noreply.github.com
|
||||||
commit_author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|
commit_author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|
||||||
|
|
||||||
|
build-docker-image:
|
||||||
|
needs: build-readme-file
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
# Checkout, install tools..
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.PAT }}
|
||||||
# Use docker to build current directory ./Dockfile
|
# Use docker to build current directory ./Dockfile
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user