piston/.github/workflows/api-push.yaml

40 lines
979 B
YAML
Raw Permalink Normal View History

2021-03-14 00:00:43 +01:00
name: Publish API image
on:
push:
branches:
- master
- v3
2021-03-14 01:00:15 +01:00
paths:
- api/**
2021-03-14 00:00:43 +01:00
jobs:
push_to_registry:
2021-03-14 00:02:06 +01:00
runs-on: ubuntu-latest
2021-03-14 00:00:43 +01:00
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
2021-03-14 00:00:43 +01:00
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
2021-04-17 02:10:59 +02:00
- name: Login to ghcr.io
uses: docker/login-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
- name: Build and push API
uses: docker/build-push-action@v2
with:
context: api
push: true
2021-03-14 04:06:42 +01:00
pull: true
tags: |
2021-04-17 02:10:59 +02:00
docker.pkg.github.com/engineer-man/piston/api
ghcr.io/engineer-man/piston