Update actions/checkout action to v4.2.2 #155
Workflow file for this run
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: Docker Image CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
submodules: true | |
- name: Build and cheat | |
env: | |
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | |
run: | | |
gpg --import <(echo "${PRIVATE_KEY}") | |
sudo apt-get update && sudo apt-get install git-secret | |
git secret reveal | |
chmod +x cheat.sh | |
./cheat.sh | |
- name: Docker login | |
env: | |
docker_username: ${{ secrets.docker_username }} | |
docker_password: ${{ secrets.docker_password }} | |
run: docker login -u $docker_username -p ${docker_password} | |
- name: Tag | |
run: docker tag chrisns/docker-devtest:latest chrisns/docker-devtest:${GITHUB_SHA} | |
- name: Push latest | |
if: github.ref == 'refs/heads/master' | |
run: docker push chrisns/docker-devtest:latest | |
- name: Push sha | |
run: docker push chrisns/docker-devtest:${GITHUB_SHA} |