Skip to content

Dockerfile: minor changes #30

Dockerfile: minor changes

Dockerfile: minor changes #30

Workflow file for this run

---
name: production
on:
push:
branches: [production]
paths-ignore:
- "README.md"
- ".trunk"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y.%m.%d')"
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ github.repository }}:${{ steps.date.outputs.date }}-${{ github.ref_name }}
platforms: linux/amd64,linux/arm64
- name: Send Discord notification
uses: sarisia/actions-status-discord@v1
if: always()
with:
title: "${{ github.repository }}: ${{ github.workflow }}"
webhook: ${{ secrets.DISCORD_WEBHOOK }}