Skip to content

Commit

Permalink
Merge pull request #27 from cirosec-studis/github_actions
Browse files Browse the repository at this point in the history
Add Github Actions
  • Loading branch information
JM-Lemmi authored Nov 12, 2021
2 parents 074226d + a63fa03 commit 0f63115
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy Docker

# Run workflow on tags starting with v (eg. v2, v1.2.0)
on:
push:
tags:
- v*

jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: JM-Lemmi
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
push: true # Will only build if this is not here
tags: |
ghcr.io/${{ github.repository }}:${{ github.ref }}
ghcr.io/${{ github.repository }}:latest

0 comments on commit 0f63115

Please sign in to comment.