ci(api): update actions to latest version
This commit is contained in:
parent
078033b4a1
commit
b94c20b334
|
@ -12,12 +12,18 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- name: Check out repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Build and push API
|
- name: Login to GitHub registry
|
||||||
uses: docker/build-push-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
context: api
|
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
registry: docker.pkg.github.com
|
registry: docker.pkg.github.com
|
||||||
repository: engineer-man/piston/piston-api
|
|
||||||
tag_with_ref: true
|
- 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
|
Loading…
Reference in New Issue