29 lines
715 B
YAML
29 lines
715 B
YAML
name: Publish API image
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- v3
|
|
|
|
jobs:
|
|
push_to_registry:
|
|
runs-on: ubuntu-latest
|
|
name: Build and Push Docker image to Github Packages
|
|
steps:
|
|
- name: Check out repo
|
|
uses: actions/checkout@v2
|
|
- name: Login to GitHub registry
|
|
uses: docker/login-action@v1
|
|
with:
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
registry: docker.pkg.github.com
|
|
|
|
- name: Build and push API
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
context: api
|
|
push: true
|
|
repository:
|
|
tags: |
|
|
docker.pkg.github.com/engineer-man/piston/api |