Skip to content

Commit

Permalink
Update Github Action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfairbanks committed Feb 23, 2024
1 parent 0c14c67 commit 8ad5b3a
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ jobs:
steps:
- name: Bump version and push tag
id: bump-tag
uses: anothrNick/github-tag-action@1.55.0
uses: anothrNick/github-tag-action@1.67.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_BRANCHES: "master,main"
DEFAULT_BUMP: "patch"
INITIAL_VERSION: "1.0.0"
INITIAL_VERSION: "1.1.1"
- name: Log new version
id: log-version
run: echo "New version -- ${{ steps.bump-tag.outputs.new_tag }}"
Expand All @@ -60,6 +60,10 @@ jobs:
outputs:
tags: ${{ steps.docker-tags.outputs.tags }}
steps:
- name: Remove unnecessary files
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Checkout source code
id: checkout-code
uses: actions/checkout@v3
Expand All @@ -77,29 +81,29 @@ jobs:
- name: Set up QEMU
id: setup-qemu
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: setup-buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ steps.vars.outputs.sha_short }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

- name: Build & Push Base Image
id: docker-build
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
builder: ${{ steps.setup-buildx.outputs.name }}
context: ./
Expand All @@ -111,7 +115,7 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache

- name: Notify Slack
uses: act10ns/slack@v1
uses: act10ns/slack@v2
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
Expand Down

0 comments on commit 8ad5b3a

Please sign in to comment.