Skip to content

Commit

Permalink
Merge pull request #12 from numerique-gouv/fix-manual-job
Browse files Browse the repository at this point in the history
fix grist manual job
  • Loading branch information
rouja authored Jun 14, 2024
2 parents 2e65fae + d95ed7c commit aaf6152
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: "impress,secrets"
repositories: "dockerfiles,secrets"
-
name: Checkout repository
uses: actions/checkout@v2
Expand Down
23 changes: 6 additions & 17 deletions .github/workflows/grist-tag-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,14 @@ jobs:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: "impress,secrets"
repositories: "dockerfiles,secrets"
-
name: Checkout repository
uses: actions/checkout@v2
with:
submodules: recursive
token: ${{ steps.app-token.outputs.token }}
ref: ${{ github.event.inputs.commitSha }}
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: lasuite/grist
tags: |
type=raw,value=${{ github.event.inputs.dinumTag }}
-
name: Load sops secrets
uses: rouja/actions-sops@main
Expand All @@ -55,11 +47,8 @@ jobs:
run: echo "$DOCKER_HUB_PASSWORD" | docker login -u "$DOCKER_HUB_USER" --password-stdin
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: ${{ matrix.path }}
file: ${{ matrix.dockerfile }}
push: true
build-args: GRIST_VERSION=${{ github.event.inputs.gristVersion }}
tags: ${{ steps.meta.outputs.tags }}
labels: {{ steps.meta.outputs.labels }}
run: |
cd dockerfiles/grist;
docker build --build-arg "GRIST_VERSION=${{ github.event.inputs.gristVersion }}" \
--annotation "commitSha=${{ github.event.inputs.commitSha }}" \
--push . -t lasuite/grist:${{ github.event.inputs.dinumTag }};

0 comments on commit aaf6152

Please sign in to comment.