Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflows to use latest versions of actions #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: 'Checkout'
uses: 'actions/checkout@v3'
uses: 'actions/checkout@v4'
with:
ref: '${{ github.head_ref }}'

Expand All @@ -27,21 +27,21 @@ jobs:
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Login to Dockerhub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

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

- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Build and push images
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
push: true
builder: ${{ steps.buildx.outputs.name }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/update_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: master
fetch-depth: '0'
Expand All @@ -31,7 +31,7 @@ jobs:
cat action.yml

- name: "Commit changes"
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
id: commit
with:
commit_author: "Oskar Stark <[email protected]>"
Expand All @@ -40,7 +40,7 @@ jobs:
commit_user_name: "Oskar Stark"

- name: "Tag version ${{ steps.fetch_version.outputs.latest }}"
uses: "anothrNick/github-tag-action@1.30.0"
uses: "anothrNick/github-tag-action@1.67.0"
if: steps.commit.outputs.changes_detected == 'true'
id: tag
env:
Expand All @@ -61,15 +61,15 @@ jobs:

publish_docker_images:
needs: [update-version]
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

if: github.ref == 'refs/heads/master' || github.event_name == 'release'
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v2
uses: crazy-max/ghaction-docker-meta@v3
with:
images: oskarstark/php-cs-fixer-ga
tags: |
Expand All @@ -79,12 +79,12 @@ jobs:
latest=false
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
Expand Down