Skip to content

Commit

Permalink
Merge pull request #6 from ricardobf/feature/ldap-support
Browse files Browse the repository at this point in the history
Workflow
  • Loading branch information
ricardobf authored Dec 12, 2020
2 parents 11251d1 + 7d252b2 commit 08f77e4
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions .github/workflows/build-push-action.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
name: Publish Docker image
on:
release:
types: [published]
push
jobs:
push_to_registries:
name: Push Docker image to multiple registries
name: Push Docker image to DockerHub
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to Docker Hub
uses: docker/build-push-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: ricardob/junket
tag_with_ref: true
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: ricardobf/junket/junket
tag_with_ref: true
context: ./junket
file: ./junket/Dockerfile
tags: ricardob/junket:latest
builder: ${{ steps.buildx.outputs.name }}
push: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 08f77e4

Please sign in to comment.