2020-07-17 11:04:46 +08:00
|
|
|
name: docker
|
2020-07-17 09:08:59 +08:00
|
|
|
|
2020-07-17 11:13:31 +08:00
|
|
|
on: [push, pull_request]
|
2020-07-17 09:08:59 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out code into the Go module directory
|
2020-11-04 13:51:38 +08:00
|
|
|
uses: actions/checkout@v2.3.4
|
2020-07-17 09:08:59 +08:00
|
|
|
|
|
|
|
- name: Build and push Docker images
|
2021-07-30 19:25:43 +08:00
|
|
|
uses: docker/build-push-action@v2.6.1
|
2020-07-17 09:08:59 +08:00
|
|
|
with:
|
|
|
|
username: zu1k
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
registry: docker.pkg.github.com
|
|
|
|
repository: zu1k/nali/nali
|
|
|
|
tag_with_ref: true
|