Skip to content

Commit

Permalink
Update DH_upload.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dthoward96 authored Sep 25, 2024
1 parent edc29cf commit 25b1f77
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/DH_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,34 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log into container registry
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
uses: docker/metadata-action@v5
with:
images: cdcgov/seqsender

- name: Build and push Docker image
id: push
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
provenance: mode=max
tags: |
"cdcgov/seqsender:v1.2.2"
"cdcgov/seqsender:latest"
labels: "Genomic sequence pipeline to automate the process of generating necessary submission files and batch uploading them to public databases."

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

0 comments on commit 25b1f77

Please sign in to comment.