Skip to content

Commit

Permalink
ci: migrate container to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Jun 11, 2021
1 parent 3e15ec8 commit 8b4dc69
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/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 }}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is part of nss-tls.
#
# Copyright (C) 2018, 2019, 2020 Dima Krasner
# Copyright (C) 2018, 2019, 2020, 2021 Dima Krasner
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand All @@ -16,7 +16,7 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

FROM dimkr/c-dev:clang
FROM ghcr.io/dimkr/containers/c-dev:clang

RUN apt-get -qq update && apt-get -y --no-install-recommends install pkg-config libglib2.0-dev libsoup2.4-dev systemd firefox && apt-get autoremove --purge && apt-get autoclean
RUN pip3 install selenium
Expand Down

0 comments on commit 8b4dc69

Please sign in to comment.