Upgrade action-builder to v0.7.6, update Dockerfile and entrypoint.sh… #79
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
name: Build-Cron | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
push: | |
branches: | |
- main | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Create Dockerfile | |
run: | | |
mkdir build | |
cat > build/Dockerfile<<EOF | |
FROM alpine | |
RUN echo "hello world" | |
ENTRYPOINT [ "sh", "-c", "echo -n 'Machine: ' && uname -m && echo -n 'Bits: ' && getconf LONG_BIT && echo 'goodbye world'" ] | |
EOF | |
- name: Build and push 🐳 | |
uses: opspresso/action-builder@v0.6.6 | |
with: | |
args: --docker | |
env: | |
USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
DOCKERFILE: build/Dockerfile | |
IMAGE_NAME: opspresso/hello-world | |
TAG_NAME: action-builder | |
BUILDX: "true" |