feat: build docker container in CI
This commit is contained in:
parent
ff3963f798
commit
61b29ec4e1
2 changed files with 29 additions and 14 deletions
15
.dockerignore
Normal file
15
.dockerignore
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
**/target
|
||||||
|
tarpaulin-report.html
|
||||||
|
.env
|
||||||
|
cobertura.xml
|
||||||
|
prod/
|
||||||
|
node_modules/
|
||||||
|
/static-assets/bundle
|
||||||
|
./templates/**/*.js
|
||||||
|
/static/cache/bundle/*
|
||||||
|
src/cache_buster_data.json
|
||||||
|
|
||||||
|
browser/target
|
||||||
|
browser/cobertura.xml
|
||||||
|
browser/docs
|
||||||
|
**/tmp/
|
28
.github/workflows/linux.yml
vendored
28
.github/workflows/linux.yml
vendored
|
@ -48,12 +48,12 @@ jobs:
|
||||||
# target
|
# target
|
||||||
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
# - name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
# if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'forgeflux-org/starchart'
|
if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'forgeflux-org/starchart'
|
||||||
# uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
# with:
|
with:
|
||||||
# username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Install ${{ matrix.version }}
|
- name: Install ${{ matrix.version }}
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
|
@ -83,14 +83,14 @@ jobs:
|
||||||
POSTGRES_DATABASE_URL: "${{ env.POSTGRES_DATABASE_URL }}"
|
POSTGRES_DATABASE_URL: "${{ env.POSTGRES_DATABASE_URL }}"
|
||||||
SQLITE_DATABASE_URL: "${{ env.SQLITE_DATABASE_URL }}"
|
SQLITE_DATABASE_URL: "${{ env.SQLITE_DATABASE_URL }}"
|
||||||
|
|
||||||
# - name: build docker images
|
- name: build docker images
|
||||||
# if: matrix.version == 'stable'
|
if: matrix.version == 'stable'
|
||||||
# run: make docker
|
run: make docker
|
||||||
#
|
|
||||||
# - name: publish docker images
|
- name: publish docker images
|
||||||
# if: matrix.version == 'stable' && (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'forgeflux-org/starchart'
|
if: matrix.version == 'stable' && (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'forgeflux-org/starchart'
|
||||||
# run: make docker-publish
|
run: make docker-publish
|
||||||
#
|
|
||||||
- name: run tests
|
- name: run tests
|
||||||
timeout-minutes: 40
|
timeout-minutes: 40
|
||||||
run:
|
run:
|
||||||
|
|
Loading…
Reference in a new issue