Update index location #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish API image | |
on: | |
push: | |
branches: | |
- master | |
- v3 | |
paths: | |
- api/** | |
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@v3 | |
- name: Login to GitHub registry | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ github.actor }} | |
password: ${{ secrets.REGISTRY_ACCESS_PAT }} | |
registry: ghcr.io | |
- name: Login to ghcr.io | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ github.actor }} | |
password: ${{ secrets.REGISTRY_ACCESS_PAT }} | |
registry: ghcr.io | |
- name: Build and push API | |
uses: docker/build-push-action@v4 | |
with: | |
context: api | |
push: true | |
pull: true | |
tags: | | |
ghcr.io/bismuthcloud/piston/api | |
ghcr.io/bismuthcloud/piston |