Skip to content

Commit

Permalink
Build using GitHub Actions and push to ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
praseodym committed Nov 15, 2021
1 parent 4699aec commit ca00926
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 29 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Docker
on:
push:
workflow_dispatch:
schedule:
- cron: '54 2 2 * *'
jobs:
buildDockerImage:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
tags: |
ghcr.io/wisvch/nginx:latest
wisvch/nginx:latest
push: ${{ github.ref == 'refs/heads/master' }}
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

0 comments on commit ca00926

Please sign in to comment.