From bac18fa6370ef1f99d741468df5a01828cd02bc7 Mon Sep 17 00:00:00 2001 From: Dakota Howard <58985143+dthoward96@users.noreply.github.com> Date: Wed, 25 Sep 2024 17:09:58 -0400 Subject: [PATCH] Update DH_upload.yml --- .github/workflows/DH_upload.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/DH_upload.yml b/.github/workflows/DH_upload.yml index d299a5b..9fd3694 100644 --- a/.github/workflows/DH_upload.yml +++ b/.github/workflows/DH_upload.yml @@ -27,9 +27,22 @@ jobs: uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: images: cdcgov/seqsender - - - name: Build the Docker image - run: docker build . --file Dockerfile --tag ${{ github.ref_name }} - - name: docker images - run: docker images + - name: Build and push Docker image + id: push + uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 + with: + context: . + file: ./Dockerfile + push: true + tags: | + 'v1.2.2' + 'latest' + labels: ${{ steps.meta.outputs.labels }} + + - 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