mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-02-17 00:35:48 +01:00
Include image.yml
This commit is contained in:
parent
b1d40e1120
commit
6a33935d62
25
.github/workflows/image.yml
vendored
Normal file
25
.github/workflows/image.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
name: image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- nightly
|
||||||
|
- lts18
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
push:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Log into Github registry
|
||||||
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
|
||||||
|
|
||||||
|
- name: Build image
|
||||||
|
run: |
|
||||||
|
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/build:${GITHUB_REF#refs/heads/}
|
||||||
|
docker build . -f Dockerfile --tag $IMAGE_ID
|
||||||
|
docker push $IMAGE_ID
|
||||||
|
echo Pushed new build image $IMAGE_ID
|
||||||
Loading…
Reference in New Issue
Block a user