Skip to content

Commit

Permalink
move ghcr login back to main workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
daler committed Feb 27, 2024
1 parent 00f52a7 commit f889d09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
- name: push to ghcr
if: '${{ ! steps.base-debian.outputs.TAG_EXISTS_base-debian }}'
run: |
echo '${{ secrets.GITHUB_TOKEN }}' | podman login ghcr.io -u '${{ github.actor }}' --password-stdin
source images/versions.sh
push_to_ghcr $BASE_DEBIAN_IMAGE_NAME $BASE_TAG
push_to_ghcr $BASE_DEBIAN_IMAGE_NAME latest
Expand Down Expand Up @@ -80,6 +81,7 @@ jobs:
- name: push to ghcr
if: '${{ ! steps.base-busybox.outputs.TAG_EXISTS_base-busybox }}'
run: |
echo '${{ secrets.GITHUB_TOKEN }}' | podman login ghcr.io -u '${{ github.actor }}' --password-stdin
source images/versions.sh
push_to_ghcr $BASE_BUSYBOX_IMAGE_NAME $BASE_TAG
push_to_ghcr $BASE_BUSYBOX_IMAGE_NAME latest
Expand Down Expand Up @@ -112,6 +114,7 @@ jobs:
- name: push to ghcr
if: '${{ ! steps.build-env.outputs.TAG_EXISTS_build-env }}'
run: |
echo '${{ secrets.GITHUB_TOKEN }}' | podman login ghcr.io -u '${{ github.actor }}' --password-stdin
source images/versions.sh
push_to_ghcr $BUILD_ENV_IMAGE_NAME $BIOCONDA_IMAGE_TAG
push_to_ghcr $BUILD_ENV_IMAGE_NAME latest
Expand Down Expand Up @@ -145,6 +148,7 @@ jobs:
- name: push to ghcr
if: '${{ ! steps.create-env.outputs.TAG_EXISTS_create-env }}'
run: |
echo '${{ secrets.GITHUB_TOKEN }}' | podman login ghcr.io -u '${{ github.actor }}' --password-stdin
source images/versions.sh
push_to_ghcr $CREATE_ENV_IMAGE_NAME $BIOCONDA_IMAGE_TAG
push_to_ghcr $CREATE_ENV_IMAGE_NAME latest
Expand Down
2 changes: 0 additions & 2 deletions images/versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,5 @@ function tag_exists () {
}

function push_to_ghcr () {
# Log in to GitHub container registry and push image
echo '${{ secrets.GITHUB_TOKEN }}' | podman login ghcr.io -u '${{ github.actor }}' --password-stdin
podman push localhost/${1}:${2} ghcr.io/bioconda/${1}:${2}
}

0 comments on commit f889d09

Please sign in to comment.