Skip to content

Commit

Permalink
Updated github CI and publish actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ivancea committed Oct 30, 2020
1 parent fbeb0c6 commit 2086a75
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
name: Docker Image CI
name: Docker CI

on:
push:
branches: [ master ]
branches:
- master
pull_request:
branches: [ master ]
branches:
- master

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag git-monitor:$(date +%s)
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag git-monitor:$(date +%s)
6 changes: 1 addition & 5 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker
name: Docker Publish

on:
push:
Expand All @@ -10,9 +10,6 @@ on:
tags:
- v*

# Run tests for any PRs.
pull_request:

env:
# TODO: Change variable to your image's name.
IMAGE_NAME: git-monitor
Expand Down Expand Up @@ -51,7 +48,6 @@ jobs:
run: docker build . --file Dockerfile --tag $IMAGE_NAME

- name: Log into GitHub Container Registry
# TODO: Create a PAT with `read:packages` and `write:packages` scopes and save it as an Actions secret `CR_PAT`
run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin

- name: Push image to GitHub Container Registry
Expand Down

0 comments on commit 2086a75

Please sign in to comment.