-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Better cache validation * fixes * new handling * use local source * revert * test itself
- Loading branch information
Showing
3 changed files
with
73 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: 'Publish' | ||
name: "Publish" | ||
|
||
on: | ||
release: | ||
|
@@ -17,12 +17,12 @@ jobs: | |
outputs: | ||
architectures: ${{ steps.info.outputs.architectures }} | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/[email protected] | ||
- name: Checkout the repository | ||
uses: actions/[email protected] | ||
|
||
- name: Get information | ||
id: info | ||
uses: home-assistant/actions/helpers/info@master | ||
- name: Get information | ||
id: info | ||
uses: home-assistant/actions/helpers/info@master | ||
|
||
publish: | ||
name: Publish builder | ||
|
@@ -33,34 +33,32 @@ jobs: | |
matrix: | ||
architecture: ${{ fromJson(needs.init.outputs.architectures) }} | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/[email protected] | ||
- name: Checkout the repository | ||
uses: actions/[email protected] | ||
|
||
- uses: olegtarasov/[email protected] | ||
if: github.event_name == 'release' | ||
name: Set tag envronment variable | ||
- uses: olegtarasov/[email protected] | ||
if: github.event_name == 'release' | ||
name: Set tag envronment variable | ||
|
||
- name: Login to DockerHub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Login to DockerHub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ secrets.GIT_USER }} | ||
password: ${{ secrets.GIT_TOKEN }} | ||
|
||
- name: Publish ${{ matrix.architecture }} builder | ||
uses: home-assistant/builder@master | ||
with: | ||
args: | | ||
--${{ matrix.architecture }} \ | ||
--target /data \ | ||
--with-codenotary "${{ secrets.VCN_USER }}" "${{ secrets.VCN_PASSWORD }}" "${{ secrets.VCN_ORG }}" \ | ||
--validate-from "${{ secrets.VCN_ORG }}" \ | ||
--validate-cache "${{ secrets.VCN_ORG }}" \ | ||
--generic $GIT_TAG_NAME | ||
- name: Login to GitHub Container Registry | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ secrets.GIT_USER }} | ||
password: ${{ secrets.GIT_TOKEN }} | ||
|
||
- name: Publish ${{ matrix.architecture }} builder | ||
uses: ./ | ||
with: | ||
args: | | ||
--${{ matrix.architecture }} \ | ||
--target /data \ | ||
--with-codenotary "${{ secrets.VCN_USER }}" "${{ secrets.VCN_PASSWORD }}" "${{ secrets.VCN_ORG }}" \ | ||
--validate-from "${{ secrets.VCN_ORG }}" \ | ||
--generic $GIT_TAG_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters