-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (39 loc) · 1.25 KB
/
build_R_images.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Rebuild and publish ubcdsci/r-dsci-100 and ubcdsci/r-dsci-100-grading on DockerHub
on:
push:
branches:
- main
paths:
- "docker/r-dsci-100/Dockerfile"
- "docker/r-dsci-100-grading/Dockerfile"
jobs:
rebuild-docker:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout main
uses: actions/checkout@v3
with:
fetch-depth: "0"
ref: "main"
- name: Create release tag
id: release
shell: bash
run: echo "tag=$(git rev-parse --short=12 HEAD)" >> $GITHUB_OUTPUT
- name: Rebuild and publish r-dsci-100 image
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: ubcdsci/r-dsci-100
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
workdir: "docker/r-dsci-100"
tags: "latest,${{ steps.release.outputs.tag }}"
- name: Rebuild and publish r-dsci-100-grading image
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: ubcdsci/r-dsci-100-grading
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
workdir: "docker/r-dsci-100-grading"
tags: "latest,${{ steps.release.outputs.tag }}"