Skip to content

Change: reset code server version to 4.16 because problems in 4.17 #164

Change: reset code server version to 4.16 because problems in 4.17

Change: reset code server version to 4.16 because problems in 4.17 #164

Workflow file for this run

name: Image
on:
push:
branches:
- main
schedule:
- cron: 10 14 * * 6
jobs:
test:
name: Test docker image
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build docker image
run: ./build.sh
- name: Run built image
run: ./start.sh
- name: Check (max 5 times) if docker images is running
run: for i in {1..10}; do docker exec --tty codec_tester env TERM=xterm docker info && break || sleep 3; done
release:
name: Release docker image
runs-on: ubuntu-20.04
needs: test
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up docker buildx
uses: docker/setup-buildx-action@v1
- name: Login to docker hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push (latest|docker-hub)
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ github.repository }}:latest
- name: Build and push (commit-hash|docker-hub)
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ github.repository }}:${{ github.sha }}
- run: docker logout
- name: Login to DockerHub
uses: docker/login-action@v1
with:
registry: docker.pkg.github.com
username: ${{ GITHUB.ACTOR }}
password: ${{ GITHUB.TOKEN }}
- name: Build and push (latest|docker-hub)
uses: docker/build-push-action@v2
with:
tags: ${{ GITHUB.REPOSITORY }}:latest
- name: Build and push (commit-hash|docker-hub)
uses: docker/build-push-action@v2
with:
tags: ${{ GITHUB.REPOSITORY }}:${{ GITHUB.SHA }}
- run: docker logout