forked from userver-framework/userver
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.43 KB
/
publish-ubuntu-22.04-base-images.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build and publish ubuntu-22.04-userver-base images
'on':
schedule:
- cron: '30 5 * * 6' # Every Saturday at 5:30
workflow_dispatch:
release:
types: [published]
jobs:
build_and_publish_base:
runs-on: ubuntu-22.04
name: Build and publish base images
permissions:
contents: read
packages: write
env:
USERVER_IMAGE_TAG: ${{ github.event.release.tag_name || 'latest' }}
steps:
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the ubuntu-22.04-userver-base Docker image
run: |
docker build -t ghcr.io/userver-framework/ubuntu-22.04-userver-base:${USERVER_IMAGE_TAG} -f scripts/docker/base-ubuntu-22.04.dockerfile .
docker push ghcr.io/userver-framework/ubuntu-22.04-userver-base:${USERVER_IMAGE_TAG}
- name: Build the ubuntu-22.04-userver-base-ci Docker image
run: |
docker build -t ghcr.io/userver-framework/ubuntu-22.04-userver-base-ci:${USERVER_IMAGE_TAG} -f scripts/docker/base-ubuntu-22.04-ci.dockerfile .
docker push ghcr.io/userver-framework/ubuntu-22.04-userver-base-ci:${USERVER_IMAGE_TAG}