modify go mod #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update R4 TRAIN | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "main" | |
tags: | |
- "v*" | |
jobs: | |
update_sdk: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASS }} | |
- name: get latest tag | |
uses: "WyriHaximus/github-action-get-previous-tag@v1" | |
id: get-latest-tag | |
with: | |
fallback: latest | |
- name: Build the docker Docker image | |
run: | | |
docker build . -f Dockerfile.r4train --tag beclab/r4train:${{ steps.get-latest-tag.outputs.tag }} | |
docker push beclab/r4train:${{ steps.get-latest-tag.outputs.tag }} |