Add push to Dockerhub

This commit is contained in:
Elliot Matson 2022-08-31 08:20:01 -05:00 committed by GitHub
parent e813747673
commit af707cd549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,10 +16,6 @@ on:
types: [published, edited] types: [published, edited]
workflow_dispatch: workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: elliotmatson/pgadmin-config-creator
jobs: jobs:
build-and-push-image: build-and-push-image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -36,6 +32,12 @@ jobs:
- -
name: Set up Docker Buildx name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to the Container registry - name: Log in to the Container registry
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b
@ -48,7 +50,9 @@ jobs:
id: meta id: meta
uses: docker/metadata-action@69f6fc9d46f2f8bf0d5491e4aabe0bb8c6a4678a uses: docker/metadata-action@69f6fc9d46f2f8bf0d5491e4aabe0bb8c6a4678a
with: with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} images: |
ghcr.io/elliotmatson/pgadmin-config-creator
elliotmatson/docker-davinci-resolve-project-server
tags: | tags: |
type=ref,event=branch type=ref,event=branch
type=ref,event=pr type=ref,event=pr