mirror of
https://github.com/turbot/steampipe.git
synced 2026-05-10 06:00:58 -04:00
Temporary changes to fix a published docker image (#4197)
This commit is contained in:
48
.github/workflows/publish_docker.yml
vendored
Normal file
48
.github/workflows/publish_docker.yml
vendored
Normal 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 }}
|
||||
Reference in New Issue
Block a user