Skip to content

Commit

Permalink
Combine workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Dec 29, 2024
1 parent 9eff85f commit 5547062
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/build-container-image.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,26 @@ jobs:
rebar3-version: "3"
- run: gleam test
- run: gleam format --check src test

build-container:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4

- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Build image
run: docker build . --file Dockerfile --tag app

- name: Push image
run: |
TAG=ghcr.io/gleam-lang/packages:main
docker tag app $TAG
docker push $TAG

0 comments on commit 5547062

Please sign in to comment.