Skip to content

Commit

Permalink
Add initial GitHub Actions for Container Registry
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb authored Nov 22, 2020
1 parent 06cd297 commit a5f0614
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
- push
# tags:
# - '*'

jobs:
docker:
name: Docker image
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]

- name: Use Docker builder
uses: docker/setup-buildx-action@v1

- name: Login to Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}

- name: Docker build and push
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
labels: |
org.opencontainers.image.authors=${{ github.repository_owner }}
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
tags: |
ghcr.io/${{ secrets.REGISTRY_IMAGE }}:latest
# ghcr.io/${{ secrets.REGISTRY_IMAGE }}:${{ github.ref }}
push: true

0 comments on commit a5f0614

Please sign in to comment.