Skip to content

Commit

Permalink
(github) first release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jbalonso-bs committed Sep 2, 2023
1 parent 90db98f commit c62bc34
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release with Earthly

on:
push:
tags:
- v[0-9]+.*

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build:
runs-on: ubuntu-latest
env:
EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }}
FORCE_COLOR: 1
steps:
- uses: earthly/actions-setup@v1
with:
version: v0.7.10
- uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false
- name: Run build
run: earthly --org jbalonso --sat opensprinkler --ci --push +release --REGISTRY=${{ env.REGISTRY }} --IMAGE_NAME=${{ env.IMAGE_NAME }} --TAG=${{ github.ref }}

0 comments on commit c62bc34

Please sign in to comment.