mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-11 23:08:30 +01:00
Some checks failed
check / Stackage check (push) Has been cancelled
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
27 lines
619 B
YAML
27 lines
619 B
YAML
name: image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- nightly
|
|
- lts24
|
|
- lts23
|
|
|
|
jobs:
|
|
push:
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name == 'push'
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Log into Github registry
|
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
|
|
|
- name: Build image
|
|
run: |
|
|
IMAGE_ID=ghcr.io/${{ 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
|