Skip to content

Commit

Permalink
Update build.yaml
Browse files Browse the repository at this point in the history
comment out docker build
  • Loading branch information
kelwyres authored Jul 19, 2024
1 parent bcb09c0 commit 7708c66
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,35 +73,35 @@ jobs:
--token "${{ secrets.ANACONDA_TOKEN }}" \
conda/bactabolize/
build_and_publish_on_dockerhub:
runs-on: ubuntu-latest
needs:
- get_version
- build_and_publish_on_conda
# Only push on push to stable, which implicitly should be only version bumps
if: github.ref == 'refs/heads/stable'
defaults:
run:
shell: bash -l {0}
env:
DOCKERHUB_REPO: "docker.io/scwatts/bactabolize"
VERSION: ${{ needs.get_version.outputs.version }}
steps:
- name: Checkout code
id: git_checkout
uses: actions/checkout@v3
- name: Build Docker image
run: |
docker build \
--tag "${DOCKERHUB_REPO}:${VERSION}" \
--file docker/Dockerfile \
./
- name: DockerHub auth
run: |
echo "${{ secrets.DOCKERHUB_TOKEN }}" | \
docker login \
--username "${{ secrets.DOCKERHUB_USERNAME }}" \
--password-stdin
- name: DockerHub push
run: |
docker push "${DOCKERHUB_REPO}:${VERSION}"
# build_and_publish_on_dockerhub:
# runs-on: ubuntu-latest
# needs:
# - get_version
# - build_and_publish_on_conda
# # Only push on push to stable, which implicitly should be only version bumps
# if: github.ref == 'refs/heads/stable'
# defaults:
# run:
# shell: bash -l {0}
# env:
# DOCKERHUB_REPO: "docker.io/scwatts/bactabolize"
# VERSION: ${{ needs.get_version.outputs.version }}
# steps:
# - name: Checkout code
# id: git_checkout
# uses: actions/checkout@v3
# - name: Build Docker image
# run: |
# docker build \
# --tag "${DOCKERHUB_REPO}:${VERSION}" \
# --file docker/Dockerfile \
# ./
# - name: DockerHub auth
# run: |
# echo "${{ secrets.DOCKERHUB_TOKEN }}" | \
# docker login \
# --username "${{ secrets.DOCKERHUB_USERNAME }}" \
# --password-stdin
# - name: DockerHub push
# run: |
# docker push "${DOCKERHUB_REPO}:${VERSION}"

0 comments on commit 7708c66

Please sign in to comment.