Skip to content

Commit

Permalink
Back to one file
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed May 14, 2024
1 parent 0f59c52 commit 718ef4c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 67 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
test:
needs: build
runs-on: ubuntu-22.04
timeout-minutes: 10
timeout-minutes: 20
permissions:
packages: read
contents: read
Expand Down Expand Up @@ -83,11 +83,31 @@ jobs:
release-ghcr:
if: github.repository_owner == 'ispg-group'
needs: [build, test]
uses: ./.github/workflows/publish.yml
with:
image_digest: ${{ needs.build.outputs.image_digest}}
registry: ghcr.io
secrets: inherit
permissions:
packages: write
contents: write
steps:
- uses: actions/checkout@v4

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

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}${{ env.ISPG_IMAGE }}
tags: |
type=ref,event=pr
type=edge,enable={{is_default_branch}}
type=match,pattern=v(\d{4}\.\d{2}.\d+(-.+)?),group=1
- name: Push image
uses: akhilerm/[email protected]
with:
src: ${{ env.registry }}${{ env.ISPG_IMAGE }}@${{ needs.build.outputs.image_digest }}
dst: ${{ steps.meta.outputs.tags }}
60 changes: 0 additions & 60 deletions .github/workflows/publish.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM aiidalab/full-stack:latest
FROM aiidalab/full-stack:aiida-2.4.3
LABEL maintainer="Daniel Hollas <[email protected]>"

USER root
Expand Down

0 comments on commit 718ef4c

Please sign in to comment.