qasda
Deploy Hello World / deploy-docker-hello-world (push) Successful in 16s
Details
Deploy Hello World / deploy-docker-hello-world (push) Successful in 16s
Details
This commit is contained in:
parent
651bde3468
commit
94c3182ed2
|
@ -0,0 +1,43 @@
|
||||||
|
name: Deploy Hello World
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
tags:
|
||||||
|
- "v*-hello-world"
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy-docker-hello-world:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v4
|
||||||
|
with:
|
||||||
|
images: git.nicktrimborn.de/nick/dockerbuild_hello_world
|
||||||
|
flavor: latest=true
|
||||||
|
tags: |
|
||||||
|
type=ref,event=branch
|
||||||
|
type=ref,event=pr
|
||||||
|
type=semver,pattern={{version}}
|
||||||
|
|
||||||
|
- name: Login to image repository
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: git.nicktrimborn.de
|
||||||
|
username: ${{ secrets.ACTION_USER }}
|
||||||
|
password: ${{ secrets.PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v3
|
||||||
|
with:
|
||||||
|
file: Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: nick/dockerbuild_hello_world:latest
|
Loading…
Reference in New Issue