build_all #3511
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_all | |
on: | |
schedule: | |
# Times are in UTC, this job is run daily @ 14HRS = 9AM EST, 20HRS = 3PM EST | |
- cron: "0 14,20 * * *" | |
workflow_dispatch: | |
jobs: | |
build_all: | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: build and push to docker | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
LP_T_CONSUMER_KEY: ${{ secrets.LP_T_CONSUMER_KEY }} | |
LP_T_CONSUMER_SECRET: ${{ secrets.LP_T_CONSUMER_SECRET }} | |
LP_T_OAUTH_SECRET: ${{ secrets.LP_T_OAUTH_SECRET }} | |
LP_T_OAUTH_TOKEN: ${{ secrets.LP_T_OAUTH_TOKEN }} | |
run: | | |
sudo rm /etc/localtime | |
sudo ln -s /usr/share/zoneinfo/America/Toronto /etc/localtime | |
docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD | |
curl --silent --location --output ~/am-dapp --url https://github.com/forwardcomputers/bin/raw/main/am-dapp | |
chmod +x ~/am-dapp | |
~/am-dapp upgrade_all_ci | |
- name: Commit and push to github | |
if: ${{ ! failure() }} | |
run: | | |
git config --local user.email "alim@forwardcomputers.com" | |
git config --local user.name "Ali Mustakim" | |
git add README.md | |
git diff-index --quiet HEAD || git commit -a -m "github actions update" | |
git push origin |