mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-25 16:44:01 +08:00
update docker image generation (#3)
* learning github actions * pubish docker * pubish docker * fixt uses * docker git action * rm arm7 * more events and tags * fixed yml file * simplified workflow * simplified workflow * fix missing tags * another fix to yml * another fix to yml * fixing yml * another try * tags * remove ghaction-docker-meta * separate actions for dev & master * update docker generation on pulls * fix repo name Co-authored-by: Matthew R Kasun <mkasun@nusak.ca>
This commit is contained in:
parent
b225f9f939
commit
a0c97447ad
1 changed files with 11 additions and 5 deletions
14
.github/workflows/publish-docker.yml
vendored
14
.github/workflows/publish-docker.yml
vendored
|
@ -1,15 +1,18 @@
|
|||
name: Publish Docker
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches:
|
||||
- 'arm-docker'
|
||||
- 'develop'
|
||||
-
|
||||
- 'master'
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: FranzDiebold/github-env-vars-action@v2
|
||||
- name: Set Environment Variables
|
||||
run: |
|
||||
echo "BUILD_VER=v0.0.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
@ -32,4 +35,7 @@ jobs:
|
|||
context: .
|
||||
platforms: linux/amd64, linux/arm64
|
||||
push: true
|
||||
tags: nusak/netmaker:dev
|
||||
tags: |
|
||||
nusak/netmaker:${{ env.CI_REF_NAME_SLUG }}
|
||||
nusak/netmaker:${{ env.BUILD_VER }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue