diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2020-06-06 14:45:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-06 14:45:07 +0100 |
commit | 10d5987c31a3c2ed9e1d2c4d52b1ed29c855d0d9 (patch) | |
tree | be77c34a4b215d55aeb39a6043a5c76744bd593b /.github/workflows/main.yml | |
parent | c708e5e51d8f6aae517a861c380861c3caf18eb6 (diff) | |
download | libgit2-10d5987c31a3c2ed9e1d2c4d52b1ed29c855d0d9.tar.gz |
Create main.yml
Diffstat (limited to '.github/workflows/main.yml')
-rw-r--r-- | .github/workflows/main.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..cdb09b766 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,21 @@ +name: Containerization + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build_container: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v2 + - name: Calculate docker image label + run: | + echo "::set-env name=docker-label::libgit2-$(git log -1 --pretty=format:"%h" azure-pipelines/docker)" + - name: Build image + run: | + docker build -t libgit2/xenial:${{ env.docker-label }} --build-arg BASE=ubuntu:xenial -f azure-pipelines/docker/xenial . + |