mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-24 00:31:35 +02:00
improve containers
This commit is contained in:
parent
e727f0e438
commit
93a9df63e6
13 changed files with 3255 additions and 176 deletions
58
.github/workflows/container-images.yml
vendored
Normal file
58
.github/workflows/container-images.yml
vendored
Normal file
|
@ -0,0 +1,58 @@
|
|||
name: Build Container Images
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- '.github/container-images.yml'
|
||||
- 'container/**'
|
||||
- 'Gemfile'
|
||||
- 'Gemfile.lock'
|
||||
- 'package.json'
|
||||
branches:
|
||||
- 'master'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Log in to package registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: https://code.cozy.town/
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and push Base image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: ./container/base/Dockerfile
|
||||
push: true
|
||||
tags: code.cozy.town/codeforleipzig/stadtratmonitor/base:latest
|
||||
|
||||
- name: Build and push Deploy image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: ./container/deploy/Dockerfile
|
||||
push: true
|
||||
tags: code.cozy.town/codeforleipzig/stadtratmonitor/deploy:latest
|
||||
|
||||
- name: Build and push Develop image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: ./container/develop/Dockerfile
|
||||
push: true
|
||||
tags: code.cozy.town/codeforleipzig/stadtratmonitor/develop:latest
|
||||
|
||||
- name: Build and push Test image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: ./container/test/Dockerfile
|
||||
push: true
|
||||
tags: code.cozy.town/codeforleipzig/stadtratmonitor/test:latest
|
Loading…
Add table
Add a link
Reference in a new issue