mirror of
https://github.com/kingomarnajjar/desktop-environment.git
synced 2026-07-28 12:43:40 +10:00
sanitise variables
This commit is contained in:
parent
0eeedc7748
commit
d3b0ce4e88
1 changed files with 13 additions and 4 deletions
17
.github/workflows/build-and-publish.yml
vendored
17
.github/workflows/build-and-publish.yml
vendored
|
|
@ -1,19 +1,28 @@
|
|||
name: Publish Desktop Environment
|
||||
on: [push]
|
||||
env:
|
||||
DOCKER_BUILDKIT: 1
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Sanitise Repository Name
|
||||
run: echo ::set-env name=GITHUB_REPOSITORY::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
- name: Sanitise Repository Owner
|
||||
run: echo ::set-env name=REPOSITORY_OWNER::$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
- name: Push to GitHub Container Registry
|
||||
uses: docker/build-push-action@v1
|
||||
with:
|
||||
build_args: BUILDKIT_INLINE_CACHE=1,DESKTOP_ENVIRONMENT_USER=${{ github.actor }}
|
||||
cache_froms: docker.pkg.github.com/${{ github.repository }}/desktop-environment
|
||||
build_args: BUILDKIT_INLINE_CACHE=1,DESKTOP_ENVIRONMENT_USER=${{ env.REPOSITORY_OWNER }}
|
||||
cache_froms: docker.pkg.github.com/${{ env.GITHUB_REPOSITORY }}/desktop-environment
|
||||
dockerfile: docker/Dockerfile
|
||||
registry: docker.pkg.github.com/${{ github.repository }}
|
||||
registry: docker.pkg.github.com/${{ env.GITHUB_REPOSITORY }}
|
||||
repository: desktop-environment
|
||||
tag_with_ref: true
|
||||
username: ${{ github.actor }}
|
||||
username: ${{ env.REPOSITORY_OWNER }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue