Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

Commit

Permalink
test pushing to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
marekaf committed May 14, 2020
1 parent 043818c commit 3e16745
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 21 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/docker-build.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/release-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release Docker Image

on:
push:
tags:
- v*

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Get release version
id: get_version
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})

- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: pipetail/cloudlint
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tag_semver: true
tags: "latest,${{ env.RELEASE_VERSION }}"
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ RUN set -eux \

FROM alpine
COPY --from=builder /build/bin/cloudlint /usr/bin/cloudlint
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENV AWS_SDK_LOAD_CONFIG=1
ENTRYPOINT ["/usr/bin/cloudlint"]

0 comments on commit 3e16745

Please sign in to comment.