Skip to content

Commit

Permalink
Migrate from Docker Hub to Github Actions and Packages
Browse files Browse the repository at this point in the history
Also remove Travis-CI configuration.
  • Loading branch information
mback2k committed Jul 24, 2023
1 parent 0074499 commit a99bbca
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.git
.travis.yml
.github
Dockerfile
19 changes: 19 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: "Publish Docker image"

on:
schedule:
- cron: "0 0 * * 0"
push:
branches:
- master

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: mback2k/action-docker-package@master
with:
registry_password: ${{ secrets.GITHUB_TOKEN }}
...
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN go get
RUN go build -ldflags="-s -w"
RUN chmod +x smtp-dkim-signer

FROM mback2k/alpine:latest
FROM ghcr.io/mback2k/docker-alpine:latest
RUN apk --no-cache --update upgrade && apk --no-cache add ca-certificates

COPY --from=build /go/smtp-dkim-signer/smtp-dkim-signer /usr/local/bin/smtp-dkim-signer
Expand Down

0 comments on commit a99bbca

Please sign in to comment.