diff --git a/.github/workflows/DH_upload.yml b/.github/workflows/DH_upload.yml index 03212c1..b8a5601 100644 --- a/.github/workflows/DH_upload.yml +++ b/.github/workflows/DH_upload.yml @@ -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