This commit is contained in:
@@ -35,41 +35,41 @@ jobs:
|
||||
username: campenbe
|
||||
password: ${{secrets.PASSWORD}}
|
||||
|
||||
steps:
|
||||
- name: Install tools
|
||||
run : |
|
||||
gitea_addr.sh
|
||||
env | sort
|
||||
steps:
|
||||
- name: Install tools
|
||||
run : |
|
||||
gitea_addr.sh
|
||||
env | sort
|
||||
|
||||
- name: Fix git access
|
||||
run: |
|
||||
git config --global url."https://git:${{secrets.GIT_TOKEN}}@gitea.ampenberger.com/campenbe/.insteadOf" git://git.ampenberger.com/
|
||||
- name: Fix git access
|
||||
run: |
|
||||
git config --global url."https://git:${{secrets.GIT_TOKEN}}@gitea.ampenberger.com/campenbe/.insteadOf" git://git.ampenberger.com/
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: false
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: false
|
||||
|
||||
- name: Build container
|
||||
run: |
|
||||
buildah build -f Dockerfile -t gitea.ampenberger.com/campenbe/${PACKAGE_NAME}:${LABEL}
|
||||
- name: Build container
|
||||
run: |
|
||||
buildah build -f Dockerfile -t gitea.ampenberger.com/campenbe/${PACKAGE_NAME}:${LABEL}
|
||||
|
||||
echo "Built ${PACKAGE_NAME}:${LABEL}"
|
||||
buildah images
|
||||
echo "Built ${PACKAGE_NAME}:${LABEL}"
|
||||
buildah images
|
||||
|
||||
- name: export the image
|
||||
run: |
|
||||
buildah push --format docker gitea.ampenberger.com/campenbe/${PACKAGE_NAME}:${LABEL} docker-archive:${PACKAGE_NAME}-${LABEL}.tar
|
||||
echo "Exported gitea.ampenberger.com/campenbe/${PACKAGE_NAME}:${LABEL} to ${PACKAGE_NAME}-${LABEL}.tar"
|
||||
- name: export the image
|
||||
run: |
|
||||
buildah push --format docker gitea.ampenberger.com/campenbe/${PACKAGE_NAME}:${LABEL} docker-archive:${PACKAGE_NAME}-${LABEL}.tar
|
||||
echo "Exported gitea.ampenberger.com/campenbe/${PACKAGE_NAME}:${LABEL} to ${PACKAGE_NAME}-${LABEL}.tar"
|
||||
|
||||
- name: Upload container image
|
||||
uses: "${{env.ARTIFACT_UPLOAD}}"
|
||||
with:
|
||||
name: ${{env.PACKAGE_NAME}}-${{ env.LABEL }}
|
||||
path: "${{env.PACKAGE_NAME}}-${{ env.LABEL }}.tar"
|
||||
if-no-files-found: error
|
||||
compression-level: 0
|
||||
- name: Upload container image
|
||||
uses: "${{env.ARTIFACT_UPLOAD}}"
|
||||
with:
|
||||
name: ${{env.PACKAGE_NAME}}-${{ env.LABEL }}
|
||||
path: "${{env.PACKAGE_NAME}}-${{ env.LABEL }}.tar"
|
||||
if-no-files-found: error
|
||||
compression-level: 0
|
||||
|
||||
- name: Publish the container to the registry
|
||||
run: |
|
||||
buildah login -u campenbe -p ${{secrets.GIT_TOKEN}} gitea.ampenberger.com
|
||||
buildah push gitea.ampenberger.com/campenbe/${PACKAGE_NAME}:${LABEL}
|
||||
- name: Publish the container to the registry
|
||||
run: |
|
||||
buildah login -u campenbe -p ${{secrets.GIT_TOKEN}} gitea.ampenberger.com
|
||||
buildah push gitea.ampenberger.com/campenbe/${PACKAGE_NAME}:${LABEL}
|
||||
|
||||
Reference in New Issue
Block a user