tf-eks-toolbox 1.30.r1 #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build and push docker image on new release creation | |
name: Docker Build Push Release | |
on: | |
release: | |
# Only use the types keyword to narrow down the activity types that will trigger your workflow. | |
types: [published] | |
jobs: | |
docker-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set Tag Name | |
run: | | |
echo $GITHUB_REF | |
echo "TAG_NAME=${GITHUB_REF/'refs/tags/'/}" >> $GITHUB_ENV | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and Push | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
push: true | |
tags: halflogic/tf-eks-toolbox:${{ env.TAG_NAME }}, halflogic/tf-eks-toolbox:latest | |