build with docker #245
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: master actions | |
run-name: build with docker | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
linux-image-deploy: | |
runs-on: ubuntu-latest | |
#if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: build image | |
run: docker build -t gpac-ubuntu -f build/docker/ubuntu.Dockerfile . | |
- name: check docker images | |
run: docker image list | |
- name: check docker run | |
run: docker run gpac-ubuntu || true | |
- name: login docker hub | |
run: docker login --username gpac --password ${{secrets.DOCKER_HUB_TOKEN}} | |
- name: tag docker image | |
run: docker tag gpac-ubuntu gpac/ubuntu:latest | |
- name: push docker image | |
run: docker push gpac/ubuntu:latest | |
wasm-image-deploy: | |
runs-on: ubuntu-latest | |
#if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: build image | |
run: docker build -t gpac-wasm -f build/docker/wasm.Dockerfile . | |
- name: check docker images | |
run: docker image list | |
- name: check docker run | |
run: docker run gpac-wasm || true | |
- name: login docker hub | |
run: docker login --username gpac --password ${{secrets.DOCKER_HUB_TOKEN}} | |
- name: tag docker image | |
run: docker tag gpac-wasm gpac/wasm:latest | |
- name: push docker image | |
run: docker push gpac/wasm:latest |