Skip to content

Commit

Permalink
Updates to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Don-Swanson committed Nov 24, 2023
1 parent a1e361c commit ad662c1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
name: Docker

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

on:
schedule:
- cron: '27 4 * * 1'
push:
branches: [ "main" ]
# Publish semver tags as releases.
tags: [ 'latest', 'v*.*.*']
tags: [ 'latest' ]
pull_request:
branches: [ "main"]
tags: [ 'latest', 'v*.*.*']

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}


jobs:
build:

Expand Down Expand Up @@ -79,7 +72,7 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
tags: don-swanson/postfix:latest
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
Expand All @@ -93,7 +86,7 @@ jobs:
if: ${{ github.event_name != 'pull_request' }}
env:
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
TAGS: ${{ steps.meta.outputs.tags }}
TAGS: don-swanson/postfix:latest
DIGEST: ${{ steps.build-and-push.outputs.digest }}
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG VERSION=unspecified
ARG VERSION=latest

FROM debian:bullseye-slim

Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: "2.1"
services:
postfix:
image: ghcr.io/don-swanson/postfix:main
container_name: postfix
volumes:
- ./postfix-config:/config
ports:
- 25:25
- 587:587
restart: unless-stopped

0 comments on commit ad662c1

Please sign in to comment.