From 0e759c27292f00459f6fa99845fb3b387d29c42a Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sun, 14 Mar 2021 12:00:43 +1300 Subject: [PATCH] ci(api): Add CI to build API container --- .github/workflows/api-push.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/api-push.yaml diff --git a/.github/workflows/api-push.yaml b/.github/workflows/api-push.yaml new file mode 100644 index 0000000..ab29e03 --- /dev/null +++ b/.github/workflows/api-push.yaml @@ -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 \ No newline at end of file