Skip to content

Merge pull request #4 from Sprudeel/better-mobile-view #21

Merge pull request #4 from Sprudeel/better-mobile-view

Merge pull request #4 from Sprudeel/better-mobile-view #21

Workflow file for this run

# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build and publish container
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: 'ubuntu-latest'
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/sprudeel/basis23-aemtliplan
tags: |
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
flavor: |
latest=false
- name: Build and push container image to registry
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
context: .
provenance: false
file: docker/Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max