mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 13:06:27 +02:00
ci(api): Add CI to build API container
This commit is contained in:
parent
39adb13ba1
commit
0e759c2729
1 changed files with 21 additions and 0 deletions
21
.github/workflows/api-push.yaml
vendored
Normal file
21
.github/workflows/api-push.yaml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: Publish API image
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- v3
|
||||
|
||||
jobs:
|
||||
push_to_registry:
|
||||
name: Build and Push Docker image to Github Packages
|
||||
steps:
|
||||
- name: Check out repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Build and push API
|
||||
uses: docker/build-push-action@v1
|
||||
with:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
registry: docker.pkg.github.com
|
||||
repository: engineer-man/piston/piston-api
|
||||
tag_with_ref: true
|
Loading…
Add table
Add a link
Reference in a new issue