Skip to content

Commit

Permalink
push to ghcr anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Nov 14, 2023
1 parent 693237e commit e5eb802
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .docker/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def docker_compose(docker_services):
return docker_services._docker_compose


def is_container_ready(dodkec_compose):
output = dodkec_compose.execute("exec -T aiida verdi status").decode().strip()
def is_container_ready(docker_compose):
output = docker_compose.execute("exec -T aiida verdi status").decode().strip()
return "Connected to RabbitMQ" in output and "Daemon is running" in output


Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
run: TAG=newly-baked python -m pytest -s tests

- name: Docker meta 📝
if: always()
id: meta
uses: docker/metadata-action@v4
with:
Expand All @@ -64,13 +65,15 @@ jobs:
type=match,pattern=v(\d+\.\d+.\d+),group=1
type=raw,value={{tag}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
- name: Login to Container Registry 🔑
if: always()
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}

- name: Set tags for image and push 🏷️📤💾
if: always()
run: |
declare -a arr=(${{ steps.meta.outputs.tags }})
for tag in "${arr[@]}"; do
Expand Down

0 comments on commit e5eb802

Please sign in to comment.