Skip to content

Commit

Permalink
feat: cicd fixes (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjagod1251 authored Oct 24, 2023
1 parent aa76ba7 commit d2406ee
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,30 @@ on:

pull_request:

env:
REGISTRY: ghcr.io
REPOSITORY: apeworx/hosted-compiler

jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Log into registry ${{ env.REGISTRY }}
# Ensure this doesn't trigger on PR's
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Image
id: build-image
env:
REGISTRY: ghcr.io
REPOSITORY: apeworx/hosted-compiler
REGISTRY: ${{env.REGISTRY}}
REPOSITORY: ${{env.REPOSITORY}}
# NOTE: Our image tagging scheme is to tag all builds on "main" with "latest",
# and then when publishing to tag it with the release version tag + "stable"
IMAGE_TAG: latest
Expand Down

0 comments on commit d2406ee

Please sign in to comment.