mirror of
https://github.com/ysoftdevs/imagepullsecret-injector.git
synced 2026-01-13 15:23:50 +01:00
30 lines
687 B
YAML
30 lines
687 B
YAML
name: Release docker images
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- devel
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
with:
|
|
ref: ${{ github.ref }}
|
|
|
|
- name: Configure Git
|
|
run: |
|
|
git config user.name "$GITHUB_ACTOR"
|
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
|
|
|
- name: Build and push docker images (make image)
|
|
run: make docker-image
|
|
env:
|
|
DOCKER_USER: ${GITHUB_ACTOR}
|
|
DOCKER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Logout from dockerhub (make docker-logout)
|
|
run: make docker-logout |