mirror of
https://github.com/MillironX/docker-BioJulia.git
synced 2024-11-21 14:36:03 +00:00
Add build workflow
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
5369281dbb
commit
25ab1c5866
1 changed files with 48 additions and 0 deletions
48
.github/workflows/build.yml
vendored
Normal file
48
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
name: Build Docker
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
docker_build:
|
||||
name: Build and Push Docker Image
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout 🛎️
|
||||
uses: actions/checkout@v2
|
||||
- name: Extract Tag Name 🕵️
|
||||
id: tag-name
|
||||
uses: olegtarasov/get-tag@v2.1
|
||||
- name: Install QEMU 🖥️
|
||||
uses: docker/setup-qemu-action@v1
|
||||
- name: Install Docker 🐋
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- name: Login to Docker Hub 🐳
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
- name: Login to Quay 🎩
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: quay.io
|
||||
username: ${{ secrets.QUAY_USERNAME }}
|
||||
password: ${{ secrets.QUAY_PASSWORD }}
|
||||
- name: Login to GitHub 🐙
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Build and Push 🏭
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
tags: |
|
||||
millironx/juliapro:latest
|
||||
millironx/juliapro:${{ steps.tag-name.outputs.tag }}
|
||||
quay.io/millironx/juliapro:latest
|
||||
quay.io/millironx/juliapro:${{ steps.tag-name.outputs.tag }}
|
||||
ghcr.io/millironx/juliapro:latest
|
||||
ghcr.io/millironx/juliapro:${{ steps.tag-name.outputs.tag }}
|
Loading…
Reference in a new issue