Skip to content

Commit

Permalink
Merge pull request #160 from rustprooflabs/gh-actions
Browse files Browse the repository at this point in the history
Stop GH actions from sending to Docker Hub
  • Loading branch information
rustprooflabs authored Aug 22, 2021
2 parents 2319f72 + 2182f8e commit 63dee7f
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,19 @@ on:
push:
jobs:
push_to_registry:
name: Push PgOSM-Flex image to Docker Hub
name: Build and inspect PgOSM Flex image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and Push to Docker Hub
- name: Build image for local GH use
id: docker_build_push
uses: docker/build-push-action@v2
with:
push: true
context: .
load: true
push: false
tags: rustprooflabs/pgosm-flex:ghdev
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

- name: Inspect image
run: |
docker image inspect rustprooflabs/pgosm-flex:ghdev

0 comments on commit 63dee7f

Please sign in to comment.