Skip to content

Update Docker images #33

Update Docker images

Update Docker images #33

name: Publish r-stat-201 on DockerHub
on:
push:
paths:
- 'dockerfiles/r-stat-201/Dockerfile'
- 'dockerfiles/r-stat-201-grading/Dockerfile'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Bump version and push tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
id: bump
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ steps.bump.outputs.new_tag }}
release_name: ${{ steps.bump.outputs.new_tag }}
body: |
Changes in this Release
- Rebuilt r-stat-201 Docker image and published to DockerHub with new tag
- Rebuilt r-stat-201-grading Docker image and published to DockerHub with new tag
draft: false
prerelease: false
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v4
with:
name: ubcstat/r-stat-201
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
workdir: dockerfiles/r-stat-201
tags: "latest,${{ steps.bump.outputs.new_tag }}"
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v4
with:
name: ubcstat/r-stat-201-grading
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
workdir: dockerfiles/r-stat-201-grading
tags: "latest,${{ steps.bump.outputs.new_tag }}"