Bump actions/deploy-pages from 3 to 4 (#64) #82
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
on: | |
push: | |
branches: | |
- main | |
- used-actions | |
- fix-module | |
workflow_dispatch: | |
env: | |
CONTAINER_REGISTRY: https://ghcr.io | |
NAME: ghcr.io/rajbos/actions-marketplace/powershell | |
TAG: 7 | |
jobs: | |
build-and-push-container: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
docker build -t ${NAME}:${TAG} -f Dockerfile . | |
# for internal usage with a proxy, use the line below | |
# docker build -t ${NAME}:${TAG} -f Dockerfile --build-arg http_proxy="$http_proxy" --build-arg https_proxy="$http_proxy" --build-arg no_proxy="$no_proxy" . | |
- name: Login CR | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ${{ env.CONTAINER_REGISTRY}} -u ${{ secrets.CONTAINER_REGISTRY_USERNAME }} --password-stdin | |
- name: Push image to CR | |
run: docker push ${NAME}:${TAG} |