docker build -t myaction .
docker run -v $(pwd):/action -it -e GITHUB_REF=refs/tags/alma myaction docker-image=mycompany/myimage:mytag "true"
name: Build
on:
push:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Build
run: |
echo "Here comes your build command"
- name: Container image
run: |
echo "Here you build your container image"
- name: Deploy with Gimlet
id: deploy
uses: gimlet-io/[email protected]
env:
GIMLET_SERVER: ${{ secrets.GIMLET_SERVER }}
GIMLET_TOKEN: ${{ secrets.GIMLET_TOKEN }}
See in action on https://github.com/gimlet-io/github-actions-integration-sample/