mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-04 09:46:43 +02:00
49 lines
No EOL
1.4 KiB
YAML
49 lines
No EOL
1.4 KiB
YAML
name: Container Image CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "rewrite-dockerfile" ]
|
|
pull_request:
|
|
branches: [ "rewrite-dockerfile" ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Log in to Forgejo package registry
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: https://code.cozy.town/
|
|
username: ${{ secrets.FORGEJO_USERNAME }}
|
|
password: ${{ secrets.FORGEJO_TOKEN }}
|
|
|
|
- name: Build and push Base image
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
context: /container/base/
|
|
push: true
|
|
tags: https://code.cozy.town/stadtratmonitor/codeforleipzig-srm-base:$(date +%s)
|
|
|
|
- name: Build and push Deploy image
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
context: /container/deploy/
|
|
push: true
|
|
tags: https://code.cozy.town/stadtratmonitor/codeforleipzig-srm-deploy:$(date +%s)
|
|
|
|
- name: Build and push Develop image
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
context: /container/develop/
|
|
push: true
|
|
tags: https://code.cozy.town/stadtratmonitor/codeforleipzig-srm-develop:$(date +%s)
|
|
|
|
- name: Build and push Test image
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
context: /container/test/
|
|
push: true
|
|
tags: https://code.cozy.town/stadtratmonitor/codeforleipzig-srm-test:$(date +%s) |