Skip to content

fix: docker build action #161

fix: docker build action

fix: docker build action #161

Workflow file for this run

name: Build Docker Image
on:
push:
branches:
- master
jobs:
build-docker:
name: Build Docker Image
runs-on: ubuntu-latest
steps:
- name: Checkout the updated source code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build image and push it to DockerHub
uses: docker/build-push-action@v4
with:
build-args: NG_CONFIGURATION=production
push: true
context: .
tags: "otevrenadatamfcr/opendata-portal:latest"
cache-from: type=gha
cache-to: type=gha,mode=max