Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub action test (#83) #84

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/DH_GHCR_upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Create and publish docker image to DockerHub and GitHub Container Repository

on:
release:
types: [published]

jobs:
push_to_registry:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Check out the repo
uses: actions/checkout@v4

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

- name: Log in to Docker Hub
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@v5
with:
images: |
cdcgov/seqsender
ghcr.io/${{ github.repository }}

- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: true
tags: |
cdcgov/seqsender:${{ github.ref_name }}
cdcgov/seqsender:latest
ghcr.io/cdcgov/seqsender:${{ github.ref_name }}
ghcr.io/cdcgov/seqsender:latest
labels: "Genomic sequence pipeline to automate the process of generating necessary submission files and batch uploading them to public databases."
42 changes: 0 additions & 42 deletions .github/workflows/GHCR_docker.yml

This file was deleted.

Loading