This repository was archived by the owner on Nov 22, 2024. It is now read-only.
forked from OHDSI/Atlas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
563859d
commit 3727238
Showing
2 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,14 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-buildx- | ||
# Log into docker hub if we're going to push the result | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
if: ${{ github.event_name != 'pull_request' }} | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
||
# Add Docker labels and tags | ||
- name: Docker meta | ||
id: docker_meta | ||
|
@@ -78,14 +86,20 @@ jobs: | |
file: ./Dockerfile | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max | ||
load: true | ||
push: ${{ github.event_name != 'pull_request' }} # Push the master branch only | ||
load: ${{ github.event_name == 'pull_request' }} # Otherwise, just load it locally | ||
tags: ${{ steps.docker_meta.outputs.tags }} | ||
# Use runtime labels from docker_meta as well as fixed labels | ||
labels: | | ||
${{ steps.docker_meta.outputs.labels }} | ||
org.opencontainers.image.authors="Joris Borgdorff <[email protected]>, Lee Evans - www.ltscomputingllc.com" | ||
org.opencontainers.image.vendor="OHDSI" | ||
maintainer=Joris Borgdorff <[email protected]>, Lee Evans - www.ltscomputingllc.com | ||
org.opencontainers.image.authors=Joris Borgdorff <[email protected]>, Lee Evans - www.ltscomputingllc.com | ||
org.opencontainers.image.vendor=OHDSI | ||
# If the image was pushed, we need to pull it again to inspect it | ||
- name: Pull image | ||
if: ${{ github.event_name != 'pull_request' }} | ||
run: docker pull ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }} | ||
|
||
- name: Inspect image | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,9 +95,11 @@ jobs: | |
# Use runtime labels from docker_meta as well as fixed labels | ||
labels: | | ||
${{ steps.docker_meta.outputs.labels }} | ||
org.opencontainers.image.authors="Joris Borgdorff <[email protected]>, Lee Evans - www.ltscomputingllc.com" | ||
org.opencontainers.image.vendor="OHDSI" | ||
maintainer=Joris Borgdorff <[email protected]>, Lee Evans - www.ltscomputingllc.com | ||
org.opencontainers.image.authors=Joris Borgdorff <[email protected]>, Lee Evans - www.ltscomputingllc.com | ||
org.opencontainers.image.vendor=OHDSI | ||
- name: Inspect image | ||
run: | | ||
docker pull ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }} | ||
docker image inspect ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }} |