-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 963 Bytes
/
toolbox_push.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
name: toolbox_push
on:
push:
paths-ignore:
- 'docs/**'
branches:
- main
jobs:
toolbox_push:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Check that ref is a branch
run: |
[[ "${{ github.ref }}" =~ ^refs/heads/ ]]
- name: Build toolbox image
run: make toolbox-build
- name: Login to container registry
run: |
TOOLBOX_REGISTRY_PASSWORD=${{ secrets.TOOLBOX_REGISTRY_PASSWORD }}
podman login -u="${{ secrets.TOOLBOX_REGISTRY_USER }}" --password-stdin "${{ secrets.TOOLBOX_REGISTRY }}" <<< "$TOOLBOX_REGISTRY_PASSWORD"
- name: Push toolbox image
run: |
# TAG=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
TAG=main
podman tag localhost/waketimed_toolbox_builder:latest "${{ secrets.TOOLBOX_REGISTRY_IMAGE }}:$TAG"
podman push "${{ secrets.TOOLBOX_REGISTRY_IMAGE }}:$TAG"