Skip to content

Commit

Permalink
added remora workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bdevcich committed Oct 17, 2023
1 parent db91e0a commit b3c73a8
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/remora.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build Remora Image
on:
push:
branches:
- "*"
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
id: checkout_repo
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- name: "Docker metadata"
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{ env.REPO_NAME }}-remora
tags: |
# For merge to master branch, tag example: 'master'
type=ref,event=branch
# For PR event, tag example: 'pr-3'
type=ref,event=pr
# For PR event or merge event, tag example: 1.0.1.12-5667
type=raw,value=${{ env.VERSION_TAG }}
# For PR event or merge, tag example: 566769e04d2436cf5f42ae4f46092c7dff6e668e
type=raw,value=${{ env.SHA_TAG }}
# For push to semver tag, tag example: 1.0.2
# This also sets 'latest'.
type=semver,pattern={{version}}
# For push to semver tag, tag example: 1.0
type=semver,pattern={{major}}.{{minor}}
- name: "Docker login"
id: docker_login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "Build the final Docker image"
id: docker_build
uses: docker/build-push-action@v3
with:
push: true
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit b3c73a8

Please sign in to comment.