gh actions test
This commit is contained in:
parent
fdbc711f9a
commit
362441c5a9
15
.github/workflows/neko.yml
vendored
15
.github/workflows/neko.yml
vendored
@ -8,12 +8,14 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container: nurdism/neko:dev
|
||||||
image: nurdism/neko:dev
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Fetch unshallow
|
||||||
|
run: git fetch --prune --tags --unshallow
|
||||||
|
|
||||||
- name: Get go dependencies and build server
|
- name: Get go dependencies and build server
|
||||||
working-directory: server
|
working-directory: server
|
||||||
run: go get -v -t -d ./... && ./build
|
run: go get -v -t -d ./... && ./build
|
||||||
@ -25,16 +27,11 @@ jobs:
|
|||||||
- name: Build the base image
|
- name: Build the base image
|
||||||
run: docker build -f ./.docker/files/base/Dockerfile -t nurdism/neko:base .
|
run: docker build -f ./.docker/files/base/Dockerfile -t nurdism/neko:base .
|
||||||
|
|
||||||
- name: Build the firefox image
|
- name: Build the latest image
|
||||||
run: docker build -f ./.docker/files/firefox/Dockerfile -t nurdism/neko:firefox -t nurdism/neko:latest .
|
run: docker build -f ./.docker/files/firefox/Dockerfile -t nurdism/neko:latest .
|
||||||
|
|
||||||
- name: Build the chromium image
|
|
||||||
run: docker build -f ./.docker/files/chromium/Dockerfile -t nurdism/neko:chromium .
|
|
||||||
|
|
||||||
- name: Push the Docker images
|
- name: Push the Docker images
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login ${{ secrets.DOCKER_REGISTRY_URL }} -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login ${{ secrets.DOCKER_REGISTRY_URL }} -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
||||||
docker push nurdism/neko:base
|
docker push nurdism/neko:base
|
||||||
docker push nurdism/neko:latest
|
docker push nurdism/neko:latest
|
||||||
docker push nurdism/neko:firefox
|
|
||||||
docker push nurdism/neko:chromium
|
|
||||||
|
Reference in New Issue
Block a user