Skip to content

use awk instead to get the id #39

use awk instead to get the id

use awk instead to get the id #39

name: Push Latest Docker images
on:
push:
branches: master
jobs:
push_to_registry:
name: Push Docker image to GitHub Container Registry
runs-on: ubuntu-latest
steps:
- name: Set lowercase owner name
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'
- name: Check out the repo
uses: actions/checkout@v2
- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push standard image to GitHub Container Registry
uses: docker/build-push-action@v2
with:
push: true
tags: ghcr.io/${{ env.OWNER_LC }}/bwb:latest