Temporary changes to fix a published docker image (#4197)

This commit is contained in:
Puskar Basu
2024-03-15 15:51:42 +05:30
committed by GitHub
parent ab4bde190c
commit 4dd2ceabfd
3 changed files with 116 additions and 0 deletions

48
.github/workflows/publish_docker.yml vendored Normal file
View File

@@ -0,0 +1,48 @@
name: Publish Docker
on:
workflow_dispatch:
inputs:
release:
description: "The name of the released version to publish"
required: true
env:
STEAMPIPE_VERSION: ${{ github.event.inputs.release }}
GH_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
GH_PUBLISH_ACCESS_TOKEN: ${{ secrets.GH_PUBLISH_ACCESS_TOKEN }}
jobs:
publish_docker:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Clean Version for Tag
id: generate_docker_tag
run: |
echo "docker_tag=${STEAMPIPE_VERSION#"v"}" >> $GITHUB_OUTPUT
- name: Build and Push to GitHub Container Registry
id: docker_build
uses: docker/build-push-action@v5
with:
push: true
platforms: linux/amd64,linux/arm64
build-args: |
TARGETVERSION=${{ env.STEAMPIPE_VERSION }}
tags: |
turbot/steampipe:${{ steps.generate_docker_tag.outputs.docker_tag }}
turbot/steampipe:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}