Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aalonsolopez authored Dec 18, 2023
1 parent 6406d59 commit fed6b45
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build and Publish Docker images

on:
release:
types: [published]

jobs:
omop-deploy:
name: Push Base OMOP Deploy image to GitHub Container Registry
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile.omop
push: true
tags: ghcr.io/${{ github.repository_owner }}/omop-deploy:latest

vocab-uploader:
name: Push OMOP Vocab Uploader image to GitHub Container Registry
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile.vocab_upload
push: true
tags: ghcr.io/${{ github.repository_owner }}/omop-vocab-uploader:latest

0 comments on commit fed6b45

Please sign in to comment.