Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
Signed-off-by: Destian Rezza <destian.rezza@flip.id>
  • Loading branch information
rezza-flip committed Feb 23, 2023
1 parent e85d699 commit fe59898
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Docker image

on:
release:
types: [published]

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Get the current
shell: bash
run: echo "::set-output name=tag::${GITHUB_REF##*/}"
id: version

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: dgrlabs/action-gke-helm-deploy:latest,dgrlabs/action-gke-helm-deploy:${{ steps.version.outputs.tag }}


0 comments on commit fe59898

Please sign in to comment.