Skip to content

Commit

Permalink
Swap publish job from Dockerhub to GHCR (#94)
Browse files Browse the repository at this point in the history
* Swap publish job from Dockerhub to GHCR

* Make names lower case

* Fix lint
  • Loading branch information
AetherUnbound authored Apr 3, 2023
1 parent 1beb165 commit d5e708c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 34 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish Docker image

on:
release:
types: [published]
push:
branches:
- ci-*

env:
image_name: seattledsa/signal-scanner-bot

jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v1
with:
registry: https://ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v2
with:
push: true
tags: |
ghcr.io/${{ env.image_name }}:${{ github.sha }}
ghcr.io/${{ env.image_name }}:${{ github.ref_name }}
ghcr.io/${{ env.image_name }}:latest
33 changes: 0 additions & 33 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
cli:
image: sdsa/signal-scanner-bot
image: ghcr.io/seattledsa/signal-scanner-bot
env_file:
- .env
environment:
Expand Down

0 comments on commit d5e708c

Please sign in to comment.