Skip to content

Commit

Permalink
ci: build container on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Jul 14, 2021
1 parent 0b36cb4 commit 2a28cee
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/ci-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: ci-container

on:
push:
branches:
- master
paths:
- Dockerfile
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:
branches:
- master

jobs:
latest:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build container image
uses: docker/build-push-action@v2
with:
push: true
tags: ghcr.io/${{ github.repository }}/ci-container:${{ github.job }}

0 comments on commit 2a28cee

Please sign in to comment.