Skip to content

TuringPi 2 cluster update #21

TuringPi 2 cluster update

TuringPi 2 cluster update #21

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
env:
VERSION: ${{ secrets.VERSION_PRIMARY }}.${{ github.run_number }}
IMAGE_NAME: archeious/unbiasedgeek-com
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Build the tagged Docker image
run: docker build . --file Dockerfile --tag ${{env.IMAGE_NAME}}:${{env.VERSION}}
- name: Push the tagged Docker image
run: docker push ${{env.IMAGE_NAME}}:${{env.VERSION}}
- name: Build the latest Docker image
run: docker build . --file Dockerfile --tag ${{env.IMAGE_NAME}}:latest
- name: Push the latest Docker image
run: docker push ${{env.IMAGE_NAME}}:latest