Skip to content

Commit

Permalink
Merge branch 'main' into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine-palazz committed Apr 11, 2024
2 parents 8113d7d + afb1cfe commit 0e7051b
Show file tree
Hide file tree
Showing 94 changed files with 14,261 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source("renv/activate.R")
55 changes: 55 additions & 0 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build Image

on:
push:
branches:
- 'main'
tags:
- "*"
paths:
- renv.lock
workflow_dispatch:

jobs:
build-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: thomasfaria/esa-nowcasting-2024
tags: |
# set latest tag for main branch
type=ref,event=branch
# propagate valid semver tags
type=semver,pattern={{raw}}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
build-args: |
"TOKEN=${{ secrets.CLONE_TOKEN }}"
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
Loading

0 comments on commit 0e7051b

Please sign in to comment.