Skip to content

Commit

Permalink
publish to docker hub again, refactored (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtanner committed May 24, 2023
1 parent a54ab65 commit 176c0fc
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 83 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docker-hub-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: docker-hub-publish

on:
release:
types: [created]

env:
IMAGE_NAME: edgescope/chaperone

jobs:
build-and-publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Build image
run: >
docker build
--tag "edgescope/chaperone:${GITHUB_REF}"
--tag "edgescope/chaperone:${GITHUB_SHA::8}"
--tag "edgescope/chaperone:latest"
.
- name: Log into registry
run: echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u dbtanner --password-stdin

- name: Push image
run: |
docker push --all-tags edgescope/chaperone
83 changes: 0 additions & 83 deletions .github/workflows/docker-publish.yml

This file was deleted.

0 comments on commit 176c0fc

Please sign in to comment.