From ca34a390c48173673fed20e15c86a0d562459ad8 Mon Sep 17 00:00:00 2001 From: Romain GERARD Date: Sun, 8 Nov 2020 12:24:57 +0100 Subject: [PATCH] Update build Former-commit-id: dc4855cab036b968332551af4f8b2880eea7b387 Former-commit-id: b8a3eeb02e75405d5e95c5685f743d9786243955 [formerly 3d977c63a145431f51f5599590e6647f6609e2ff] [formerly f441e591d4759084d59a968ae0160707d1e9f784 [formerly cc6c6bb231fff98ff0d946da912e50b7469f314a [formerly cc6c6bb231fff98ff0d946da912e50b7469f314a [formerly cc6c6bb231fff98ff0d946da912e50b7469f314a [formerly e85438cbbaea779949e111ad2bfbd032b9c57164]]]]] Former-commit-id: c83aef224f415a67c685843b30f11484f2f3004b [formerly 1e84d56275bcb6f5cb5a143caaafbbf73908f338] Former-commit-id: bcc0c5b05836498d91bdec6794bf5076a936aae1 Former-commit-id: 498f079944af74d030fc98cf3e71b4e7ab2e3ba9 Former-commit-id: 59c232c62567b0dfe974c23c492edbe75a2f4b30 Former-commit-id: 3fa5d482877ebe1168f3f5941fafc3061b856a13 [formerly 91ea48936bf4a0ca26361da1b5b68a0cadcecf5d] Former-commit-id: 71008397b3753440925a3fc384d8680f309a9441 --- .github/workflows/build.yml | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index afcbdfe..3d57c25 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,16 +6,35 @@ jobs: build-linux: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-haskell@v1 - with: - ghc-version: '8.8.3' - cabal-version: '3.0' + - name: Check out the repo + uses: actions/checkout@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.CR_PAT }} + + - name: wstunnel-builder-cache + id: docker_build_wstunnel-cache + uses: docker/build-push-action@v2 + with: + push: true + tags: ghcr.io/erebe/wstunnel:builder-cache + target: builder-cache + + - name: wstunnel + id: docker_build_wstunnel + uses: docker/build-push-action@v2 + with: + push: true + tags: ghcr.io/erebe/wstunnel:latest - name: Build run: | - docker build -t wstunnel:latest . - docker run --rm -v $(pwd):/data wstunnel:latest /bin/cp /wstunnel /data/ + docker run --rm -v $(pwd):/data ghcr.io/erebe/wstunnel:latest /bin/cp /wstunnel /data/ ./wstunnel - uses: actions/upload-artifact@v1