Skip to content

0.1.3

0.1.3 #12

name: Build
on:
release:
types: [ published ]
jobs:
build_and_publish_image:
runs-on: ubuntu-latest
env:
DOCKER_REPOSITORY: observatorycontrolsystem/ocs-example-frontend
DOCKER_IMAGE_TAG: ${{ github.event.release.tag_name }}
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build image and push to Docker Hub
uses: docker/build-push-action@v2
with:
context: .
pull: true
push: true
tags: ${{ env.DOCKER_REPOSITORY }}:${{ env.DOCKER_IMAGE_TAG }}