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