Skip to content

Commit

Permalink
☀ projected laravel-site from dcd42fe
Browse files Browse the repository at this point in the history
Source-holobranch: laravel-site
Source-commit: 2433c16
Source: dcd42fe
  • Loading branch information
themightychris committed May 1, 2021
2 parents 2433c16 + dcd42fe commit 5cd8f92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/release-laravel-site-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ jobs:
- name: Fetch latest commit
run: git fetch --depth=1 "https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}" "${GITHUB_REF}:${GITHUB_REF}"

- name: Login to docker.pkg.github.com
uses: docker/login-action@v1
with:
registry: docker.pkg.github.com
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to ghcr.io
uses: docker/login-action@v1
with:
Expand All @@ -40,7 +33,7 @@ jobs:
run: |
DOCKER_REPOSITORY="${GITHUB_REPOSITORY,,}"
DOCKER_IMAGE="docker.pkg.github.com/${DOCKER_REPOSITORY}/${DOCKER_PACKAGE}"
DOCKER_IMAGE="ghcr.io/${DOCKER_REPOSITORY}/${DOCKER_PACKAGE}"
echo "Using path: ${DOCKER_IMAGE}"
echo "DOCKER_IMAGE=${DOCKER_IMAGE}" >> $GITHUB_ENV
echo "DOCKER_REPOSITORY=${DOCKER_REPOSITORY}" >> $GITHUB_ENV
Expand All @@ -56,7 +49,7 @@ jobs:
DOCKER_MANIFEST="$(curl -X GET \
-u "${{ github.repository_owner }}:${{ secrets.GITHUB_TOKEN }}" \
--fail \
"https://docker.pkg.github.com/v2/${DOCKER_REPOSITORY}/${DOCKER_PACKAGE}/manifests/${SOURCE_TREE}"
"https://ghcr.io/v2/${DOCKER_REPOSITORY}/${DOCKER_PACKAGE}/manifests/${SOURCE_TREE}"
)"
if [ $? -eq 0 ]; then
Expand All @@ -76,7 +69,7 @@ jobs:
-u "${{ github.repository_owner }}:${{ secrets.GITHUB_TOKEN }}" \
--fail \
-d "${DOCKER_MANIFEST}" \
"https://docker.pkg.github.com/v2/${DOCKER_REPOSITORY}/${DOCKER_PACKAGE}/manifests/latest"
"https://ghcr.io/v2/${DOCKER_REPOSITORY}/${DOCKER_PACKAGE}/manifests/latest"
# - uses: mxschmitt/action-tmate@v3
# env:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tag-laravel-site-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: |
DOCKER_REPOSITORY="${GITHUB_REPOSITORY,,}"
DOCKER_IMAGE="docker.pkg.github.com/${DOCKER_REPOSITORY}/${DOCKER_PACKAGE}"
DOCKER_IMAGE="ghcr.io/${DOCKER_REPOSITORY}/${DOCKER_PACKAGE}"
echo "Using path: ${DOCKER_IMAGE}"
echo "DOCKER_IMAGE=${DOCKER_IMAGE}" >> $GITHUB_ENV
echo "DOCKER_REPOSITORY=${DOCKER_REPOSITORY}" >> $GITHUB_ENV
Expand All @@ -73,7 +73,7 @@ jobs:
DOCKER_MANIFEST="$(curl -X GET \
-u "${{ github.repository_owner }}:${{ secrets.GITHUB_TOKEN }}" \
--fail \
"https://docker.pkg.github.com/v2/${DOCKER_REPOSITORY}/${DOCKER_PACKAGE}/manifests/${SOURCE_TREE}"
"https://ghcr.io/v2/${DOCKER_REPOSITORY}/${DOCKER_PACKAGE}/manifests/${SOURCE_TREE}"
)"
if [ $? -ne 0 ]; then
Expand All @@ -95,6 +95,6 @@ jobs:
-u "${{ github.repository_owner }}:${{ secrets.GITHUB_TOKEN }}" \
--fail \
-d "${DOCKER_MANIFEST}" \
"https://docker.pkg.github.com/v2/${DOCKER_REPOSITORY}/${DOCKER_PACKAGE}/manifests/${PACKAGE_VERSION}"
"https://ghcr.io/v2/${DOCKER_REPOSITORY}/${DOCKER_PACKAGE}/manifests/${PACKAGE_VERSION}"
echo "Tagged :${SOURCE_TREE} to :${PACKAGE_VERSION}"

0 comments on commit 5cd8f92

Please sign in to comment.