mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 14:22:33 +03:00
feat: update push, add release stage
This commit is contained in:
parent
05ddfd13b7
commit
0b22ba9830
28
.github/workflows/push.yml
vendored
28
.github/workflows/push.yml
vendored
@ -13,6 +13,30 @@ jobs:
|
|||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build .
|
run: go build .
|
||||||
- name: List dir
|
- name: Upload build
|
||||||
run: ls
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: micrach
|
||||||
|
path: micrach
|
||||||
|
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Download build
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: micrach
|
||||||
|
path: micrach
|
||||||
|
- name: Build docker image and push to GitHub registry
|
||||||
|
uses: docker/build-push-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
registry: docker.pkg.github.com
|
||||||
|
repository: yanislav-igonin/micrach
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
tags: latest
|
||||||
|
# build_args: CI_COMMIT_TAG=${{ github.event.release.tag_name }}
|
||||||
|
Loading…
Reference in New Issue
Block a user