Skip to content

chore: github workflow tags and dockerhub test #2

chore: github workflow tags and dockerhub test

chore: github workflow tags and dockerhub test #2

Workflow file for this run

name: Build Docker images
on:
push:
branches: ["main"]
jobs:
build-and-push-dockerfile-image:
if: startsWith(github.repository, 'Inkubator-IT/template-') == false
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: |
inkubatorit/website:latest
inkubatorit/website:${{ github.sha }}
platforms: linux/amd64