mirror of
https://github.com/turbot/steampipe.git
synced 2026-02-22 23:00:16 -05:00
This commit is contained in:
46
.github/workflows/publish_docker.yml
vendored
Normal file
46
.github/workflows/publish_docker.yml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
name: Publish Docker Release
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
release:
|
||||
description: "The name of the released version to publish"
|
||||
required: true
|
||||
|
||||
env:
|
||||
STEAMPIPE_VERSION: ${{ github.event.inputs.release }}
|
||||
|
||||
jobs:
|
||||
publish_docker:
|
||||
name: Push Docker image to Docker Hub
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Clean Version for Tag
|
||||
id: generate_docker_tag
|
||||
run: |
|
||||
echo "::set-output name=docker_tag::${STEAMPIPE_VERSION#"v"}"
|
||||
|
||||
- name: Build and Push to Docker Hub
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
build-args: |
|
||||
TARGETOS=linux
|
||||
TARGETARCH=amd64
|
||||
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 }}
|
||||
|
||||
|
||||
|
||||
|
||||
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@@ -3,10 +3,10 @@ on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
branch:
|
||||
description: 'The branch that will be built'
|
||||
description: "The branch that will be built"
|
||||
required: true
|
||||
tag:
|
||||
description: 'The release tag that will be set'
|
||||
description: "The release tag that will be set"
|
||||
required: true
|
||||
|
||||
env:
|
||||
@@ -16,7 +16,7 @@ jobs:
|
||||
goreleaser:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
@@ -70,10 +70,9 @@ jobs:
|
||||
needs: goreleaser
|
||||
strategy:
|
||||
matrix:
|
||||
platform: [ ubuntu-latest ]
|
||||
platform: [ubuntu-latest]
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user